:root {
    --bg-dark: #0a0f1d;
    --card-bg: rgba(20, 28, 48, 0.6);
    --cyan-primary: #00d1ff;
    --cyan-glow: rgba(0, 209, 255, 0.3);
    --text-main: #e0e6ed;
    --text-dim: #94a3b8;
    --border-color: rgba(0, 209, 255, 0.1);
    --glass-blur: blur(12px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 209, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 209, 255, 0.05) 0%, transparent 20%);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

.app-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Header Styles */
.glass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.logo h1 span {
    color: var(--cyan-primary);
}

.status-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--cyan-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--cyan-primary);
    border-radius: 50px;
    box-shadow: 0 0 10px var(--cyan-glow);
}

/* Glass Card Component */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Search Section */
.input-wrapper {
    display: flex;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
}

.input-icon {
    margin-left: 1rem;
    color: var(--text-dim);
}

#urlYoutube {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    padding: 0.8rem 0;
    outline: none;
}

#urlYoutube::placeholder {
    color: var(--text-dim);
}

.btn-neon {
    background: var(--cyan-primary);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    color: #000;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px var(--cyan-glow);
}

.btn-neon:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--cyan-glow);
}

.btn-neon:active {
    transform: translateY(0);
}

/* Loader Styles */
.loader-container {
    display: none;
    margin-top: 1.5rem;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
}

.loader-container.show {
    display: flex;
}

.scanner-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.scanner-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: var(--cyan-primary);
    box-shadow: 0 0 10px var(--cyan-primary);
    animation: scan 1.5s infinite linear;
}

@keyframes scan {
    from { left: -50%; }
    to { left: 100%; }
}

.loading-text {
    font-size: 0.7rem;
    color: var(--cyan-primary);
    letter-spacing: 2px;
}

/* Song List Section */
.list-section {
    margin-top: 2rem;
}

.list-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.list-header h2 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-dim);
}

.song-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.song-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.song-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
    transform: scale(1.01);
}

.song-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.song-title {
    font-weight: 500;
    color: var(--text-main);
    max-width: 400px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-meta {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.song-actions {
    display: flex;
    gap: 0.8rem;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.action-btn.yt { color: #ff4b4b; background: rgba(255, 75, 75, 0.1); }
.action-btn.dl { color: var(--cyan-primary); background: rgba(0, 209, 255, 0.1); }

.action-btn:hover { transform: scale(1.1); }

/* Toasts */
.toast {
    position: fixed;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: var(--glass-blur);
    transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.toast.show { bottom: 30px; }
.toast.success { background: rgba(0, 209, 255, 0.2); color: var(--cyan-primary); border: 1px solid var(--cyan-primary); }
.toast.error { background: rgba(255, 75, 75, 0.2); color: #ff4b4b; border: 1px solid #ff4b4b; }

.app-footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

/* Animations */
.animate-in {
    animation: slideIn 0.4s ease-out forwards;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .app-container { padding: 1rem; }
    .input-wrapper { flex-direction: column; padding: 1rem; }
    #btnDownload { width: 100%; justify-content: center; }
    .song-item { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .song-actions { width: 100%; justify-content: flex-end; }
}