:root {
            /* Light Mode Variables */
            --house-bg: url('dag.png');
            --bg-color: #f4f5f7;
            --card-bg: #ffffff;
            --text-main: #111827;
            --text-muted: #6b7280;
            --accent-green: #10b981;
            --accent-blue: #3b82f6;
            --border-color: #e5e7eb;
            --shadow: 0 4px 12px rgba(0,0,0,0.05);
            --pill-bg: #fee2e2;
            --pill-text: #ef4444;
        }
        [data-theme="dark"] {
            /* Dark Mode Variables */
            --house-bg: url('nacht.png');
            --bg-color: #111827;
            --card-bg: #1f2937;
            --text-main: #f9fafb;
            --text-muted: #9ca3af;
            --border-color: #374151;
            --accent-blue: #60a5fa;
            --shadow: 0 4px 12px rgba(0,0,0,0.2);
            --pill-bg: #7f1d1d;
            --pill-text: #fca5a5;
        }
        * { box-sizing: border-box; transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            background-color: var(--bg-color);
            color: var(--text-main);
            margin: 0;
            padding: 10px 20px 20px 20px;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            min-height: 100vh;
            overflow-x: hidden;
        }
        .container {
            width: 100%;
            max-width: 480px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        h1 {
            margin: 0;
            font-size: 24px;
            font-weight: 700;
        }
        .icon-btn {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            color: var(--text-main);
            border-radius: 50%;
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: var(--shadow);
        }
        .login-card {
            background: var(--card-bg);
            border-radius: 16px;
            box-shadow: var(--shadow);
            overflow: hidden;
            border: 1px solid var(--border-color);
        }
        .house-container {
            width: 100%;
            height: 180px;
            background: var(--house-bg) center 60% / cover no-repeat;
            transition: background 1s ease-in-out;
            border-bottom: 1px solid var(--border-color);
        }
        .login-form-area {
            padding: 30px 25px;
            text-align: center;
        }
        .login-form-area h2 {
            margin: 0 0 20px 0;
            font-size: 20px;
            font-weight: 600;
        }
        input[type="password"], input[type="text"] {
            width: 100%;
            padding: 16px;
            background: var(--bg-color);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            color: var(--text-main);
            font-size: 18px;
            margin-bottom: 12px;
            outline: none;
            box-sizing: border-box;
            text-align: center;
        }
        input[type="password"]:focus, input[type="text"]:focus {
            border-color: var(--accent-green);
        }
        button[type="submit"] {
            background-color: var(--accent-green);
            color: #ffffff;
            border: none;
            padding: 16px;
            font-size: 18px;
            font-weight: bold;
            border-radius: 12px;
            cursor: pointer;
            width: 100%;
            transition: transform 0.1s;
        }
        button[type="submit"]:active {
            transform: scale(0.98);
        }
        .error {
            color: var(--pill-text);
            background: var(--pill-bg);
            margin-bottom: 20px;
            font-weight: 500;
            font-size: 15px;
            padding: 12px;
            border-radius: 8px;
        }
    

/* Lyd UI Revamp */
#tab-music .container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #e0e2e6;
    max-width: 400px;
    margin: 0 auto;
}

.music-section {
    background: #2b303b;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.now-playing {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}
.album-art {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
    background: #111;
}
.track-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.track-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}
.track-artist, .track-album {
    font-size: 14px;
    color: #8c93a1;
}

.playback-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}
.icon-btn-music {
    background: none;
    border: none;
    color: #a0a6b5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}
.icon-btn-music:nth-child(3) { /* Play/Pause is bigger and white */
    color: #ffffff;
}

.timeline {
    display: flex;
    align-items: center;
    gap: 12px;
}
.time-text {
    font-size: 12px;
    color: #6b7280;
    font-variant-numeric: tabular-nums;
}
.progress-bar-container {
    flex-grow: 1;
    height: 4px;
    background: #404756;
    border-radius: 2px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: #8c93a1;
}

.section-header {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}
.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
}
.section-header-flex .section-header {
    margin-bottom: 0;
}
.section-action {
    font-size: 14px;
    color: #8c93a1;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #8c93a1;
}
.volume-slider {
    -webkit-appearance: none;
    flex-grow: 1;
    height: 6px;
    background: #404756;
    border-radius: 3px;
    outline: none;
}
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.speaker-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.speaker-item {
    display: flex;
    align-items: center;
    gap: 16px;
}
.speaker-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #404756;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0a6b5;
}
.speaker-name {
    flex-grow: 1;
    font-size: 16px;
    font-weight: 500;
}
.speaker-settings {
    color: #8c93a1;
}
.speaker-item.active .speaker-icon {
    background: #3b82f6;
    color: #ffffff;
}

.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}
.action-btn {
    background: #2b303b;
    border-radius: 12px;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    text-align: center;
}
.action-btn svg {
    color: #a0a6b5;
}
