/* ==========================================================================
   EX SCREEN — Production Workstation Stylesheet
   Modern, Ultra-Clean Design (0px Solid Matte & 25px Glassmorphic Acrylic)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & SYSTEM THEMES
   -------------------------------------------------------------------------- */
:root {
    /* Base Color Tokens */
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.25);
    --accent-hover: #2563eb;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Dynamic Glass / Blur Tokens (Default 25px Glass) */
    --surface-glass: rgba(13, 17, 28, 0.72);
    --surface-solid: #0d111c;
    --blur-val: 25px;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(255, 255, 255, 0.2);

    /* Dimensions & Radii */
    --taskbar-height: 50px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;

    /* Shadows */
    --shadow-window: 0 24px 50px -12px rgba(0, 0, 0, 0.75), 0 0 0 1px var(--border-subtle);
    --shadow-focus: 0 28px 60px -10px rgba(0, 0, 0, 0.85), 0 0 0 1px var(--accent-glow);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* 0px SOLID MATTE MODE */
body.glass-0 {
    --blur-val: 0px !important;
    --surface-glass: rgba(14, 18, 28, 0.98) !important;
    --border-subtle: rgba(255, 255, 255, 0.12) !important;
}

/* 25px ULTRA GLASS MODE */
body.glass-25 {
    --blur-val: 25px !important;
    --surface-glass: rgba(13, 17, 28, 0.72) !important;
    --border-subtle: rgba(255, 255, 255, 0.08) !important;
}

/* THEME 1: MIDNIGHT SLATE (LINEAR / VERCEL INSPIRED) */
body.theme-slate {
    --bg-desktop: #06080e;
    --surface-solid: #0d111a;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.3);
}

/* THEME 2: OBSIDIAN BLACK (TRUE AMOLED) */
body.theme-oled {
    --bg-desktop: #000000;
    --surface-solid: #080808;
    --surface-glass: rgba(8, 8, 8, 0.85);
    --accent: #10b981;
    --accent-glow: rgba(16, 185, 129, 0.3);
    --border-subtle: rgba(255, 255, 255, 0.1);
}

/* THEME 3: GALAXY ONE UI */
body.theme-dex {
    --bg-desktop: #070c18;
    --surface-solid: #0e1526;
    --accent: #0284c7;
    --accent-glow: rgba(2, 132, 199, 0.3);
}

/* THEME 4: CYBER VIOLET */
body.theme-cyber {
    --bg-desktop: #0a0414;
    --surface-solid: #150926;
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.3);
}

/* THEME 5: NORD FROST */
body.theme-nord {
    --bg-desktop: #0c1017;
    --surface-solid: #151b26;
    --accent: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.3);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESET & BASE
   -------------------------------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
}

body.dex-body {
    font-family: var(--font-sans);
    background-color: var(--bg-desktop);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    letter-spacing: -0.01em;
}

/* Minimal Custom Scrollbar */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); }

/* --------------------------------------------------------------------------
   3. DESKTOP WORKSPACE & WALLPAPER
   -------------------------------------------------------------------------- */
.desktop-workspace {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.desktop-wallpaper {
    position: absolute;
    inset: 0;
    background-image: url('../assets/wallpapers/dex-ai.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: background-image 0.4s ease;
}

.wallpaper-dim-layer {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
    pointer-events: none;
}

/* DESKTOP SHORTCUT ICONS */
.desktop-dock-grid {
    position: absolute;
    top: 24px;
    left: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 10;
}

.desktop-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 76px;
    padding: 8px 4px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.16s ease;
    text-align: center;
}
.desktop-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}
.desktop-item:active {
    transform: scale(0.96);
}

.app-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    margin-bottom: 6px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.desktop-item:hover .app-icon-box {
    border-color: var(--accent);
    transform: scale(1.06);
}

.app-label {
    font-size: 11px;
    font-weight: 500;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

/* --------------------------------------------------------------------------
   4. WINDOW FRAME SYSTEM (ACRYLIC GLASS & CRISP TITLEBAR)
   -------------------------------------------------------------------------- */
.dex-window {
    position: absolute;
    background: var(--surface-glass);
    backdrop-filter: blur(var(--blur-val));
    -webkit-backdrop-filter: blur(var(--blur-val));
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-window);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 400px;
    min-height: 280px;
    z-index: 100;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.dex-window.active {
    box-shadow: var(--shadow-focus);
    border-color: var(--border-focus);
}

.dex-window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0;
}

.window-titlebar {
    height: 38px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    cursor: grab;
}
.window-titlebar:active { cursor: grabbing; }

.title-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
}

.title-icon {
    font-size: 13px;
    color: var(--accent);
}

.badge-cluster {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
}

.status-badge {
    font-size: 10px;
    padding: 1px 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}
.status-badge.ping {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

.window-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.win-btn {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.12s ease;
}
.win-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}
.win-close:hover {
    background: #ef4444;
    color: #fff;
}

.window-body {
    flex: 1;
    overflow: auto;
    position: relative;
}

.resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 14px;
    height: 14px;
    cursor: nwse-resize;
    background: linear-gradient(135deg, transparent 50%, rgba(255, 255, 255, 0.2) 50%);
    border-bottom-right-radius: var(--radius-md);
    z-index: 10;
}

/* --------------------------------------------------------------------------
   5. PHONE DISPLAY VIEWPORT & FLOATING CONTROL DOCK
   -------------------------------------------------------------------------- */
.stream-viewport {
    display: flex;
    flex-direction: column;
    background: #000000;
    overflow: hidden;
    position: relative;
}

.canvas-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #04060a;
}

#screenCanvas {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.viewport-empty-state {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 8, 14, 0.94);
    padding: 30px;
    text-align: center;
}

.empty-state-card {
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.empty-icon-ring {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--accent);
    margin-bottom: 16px;
}

.empty-state-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}
.empty-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

.quick-connect-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.hardware-specs-row {
    display: flex;
    gap: 16px;
    font-size: 11px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
    padding-top: 16px;
}

/* FLOATING DISPLAY DOCK */
.display-dock {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(14, 18, 28, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: 30px;
    padding: 4px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    z-index: 20;
}

.dock-section {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dock-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.12s ease;
}
.dock-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.dock-sep {
    width: 1px;
    height: 16px;
    background: var(--border-subtle);
}

/* --------------------------------------------------------------------------
   6. APPEARANCE & PERSONALIZATION STYLES (0px vs 25px BLUR)
   -------------------------------------------------------------------------- */
.appearance-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.custom-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.card-title-row h4 {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.tag-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 2px 8px;
    border-radius: 4px;
}

/* BLUR SELECTOR TILES */
.blur-selector-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.blur-option {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.16s ease;
}
.blur-option:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
}
.blur-option.active {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.blur-preview {
    width: 100%;
    height: 48px;
    border-radius: 6px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../assets/wallpapers/dex-ai.jpg');
    background-size: cover;
}
.preview-glass-box {
    width: 65%;
    height: 28px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}
.preview-solid-box {
    width: 65%;
    height: 28px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.blur-title {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}
.blur-desc {
    font-size: 11px;
    color: var(--text-muted);
}

/* THEME PRESET PILLS */
.theme-presets-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.theme-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    color: var(--text-secondary);
    transition: all 0.15s ease;
}
.theme-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.theme-pill.active {
    border-color: var(--accent);
    color: #fff;
    background: var(--accent-glow);
}

.swatch {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.slate-swatch { background: #3b82f6; }
.oled-swatch { background: #10b981; }
.dex-swatch { background: #0284c7; }
.cyber-swatch { background: #8b5cf6; }
.nord-swatch { background: #38bdf8; }

/* ACCENT SWATCHES */
.accent-swatches-grid {
    display: flex;
    align-items: center;
    gap: 12px;
}
.accent-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease;
}
.accent-dot:hover {
    transform: scale(1.15);
}
.custom-color-field {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: 8px;
}
#accentInput {
    -webkit-appearance: none;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    background: transparent;
}
#accentInput::-webkit-color-swatch {
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
}

/* WALLPAPERS GRID */
.wp-thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.wp-thumb {
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.16s ease;
    display: flex;
    flex-direction: column;
}
.wp-thumb:hover {
    border-color: var(--text-primary);
    transform: translateY(-2px);
}
.wp-thumb.active {
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}
.wp-thumb img {
    width: 100%;
    height: 52px;
    object-fit: cover;
}
.wp-thumb span {
    font-size: 10px;
    padding: 3px;
    background: #090d16;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-file-upload-row {
    margin-top: 8px;
}

/* --------------------------------------------------------------------------
   7. CONNECTION HUB STYLES
   -------------------------------------------------------------------------- */
.connection-body {
    padding: 20px;
}

.nav-segment-bar {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 3px;
    margin-bottom: 18px;
}

.segment-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: 4px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s ease;
}
.segment-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.segment-pane { display: none; }
.segment-pane.active { display: block; }

.protocol-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 16px;
}

.protocol-header {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}
.protocol-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--accent);
}
.protocol-header h4 { font-size: 14px; margin-bottom: 2px; }
.protocol-header p { font-size: 12px; color: var(--text-secondary); }

.usb-action-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
}
.status-indicator-box {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}
.status-indicator-box .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
}

.btn-cluster {
    display: flex;
    gap: 10px;
}

.device-card-active {
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-sm);
    padding: 14px;
}
.device-meta-header {
    font-size: 12px;
    font-weight: 600;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}
.meta-data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 12px;
}
.meta-data-grid label { color: var(--text-muted); display: block; font-size: 11px; }
.meta-data-grid span { color: #fff; font-weight: 500; }

.form-group-modern label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-secondary);
}
.input-action-row {
    display: flex;
    gap: 8px;
}
.text-input {
    flex: 1;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 13px;
    outline: none;
}
.text-input:focus { border-color: var(--accent); }
.input-hint {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* BUTTONS */
.btn {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover {
    background: var(--accent-hover);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: #fff;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.btn-lg { padding: 10px 20px; font-size: 13px; }
.btn-sm { padding: 4px 10px; font-size: 11px; }

/* --------------------------------------------------------------------------
   8. TERMINAL STYLES
   -------------------------------------------------------------------------- */
.terminal-body {
    display: flex;
    flex-direction: column;
    background: #080a10;
    font-family: var(--font-mono);
    padding: 10px;
}
.terminal-quick-bar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 8px;
}
.chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-family: var(--font-mono);
    cursor: pointer;
}
.chip:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.terminal-output {
    flex: 1;
    overflow-y: auto;
    font-size: 12px;
    line-height: 1.5;
    color: #38bdf8;
    white-space: pre-wrap;
    word-break: break-all;
}
.log-info { color: var(--text-muted); }
.log-user { color: #fbbf24; }
.terminal-prompt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
}
.prompt-sym { color: #10b981; font-size: 12px; font-weight: 600; }
.prompt-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 12px;
    outline: none;
}

/* --------------------------------------------------------------------------
   9. SETTINGS & SWITCHES
   -------------------------------------------------------------------------- */
.settings-body { padding: 18px; }
.settings-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 16px;
}
.settings-card h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}
.settings-row-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.settings-row-grid label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.modern-select {
    width: 100%;
    padding: 7px 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 12px;
    outline: none;
}

.switch-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.switch-item b { font-size: 12px; display: block; }
.switch-item p { font-size: 11px; color: var(--text-muted); }

.toggle-switch { position: relative; width: 36px; height: 20px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-track {
    position: absolute; inset: 0; cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px; transition: .2s;
}
.toggle-track:before {
    position: absolute; content: ""; height: 14px; width: 14px;
    left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: .2s;
}
input:checked + .toggle-track { background: var(--accent); }
input:checked + .toggle-track:before { transform: translateX(16px); }

/* --------------------------------------------------------------------------
   10. APP DRAWER SHEET
   -------------------------------------------------------------------------- */
.app-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1500;
    display: none;
    align-items: center;
    justify-content: center;
}
.app-drawer-overlay.open { display: flex; }

.app-drawer-sheet {
    width: 600px;
    max-height: 75vh;
    background: var(--surface-glass);
    backdrop-filter: blur(var(--blur-val));
    -webkit-backdrop-filter: blur(var(--blur-val));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.drawer-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
}
.drawer-search input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    font-size: 13px;
}
.drawer-grid {
    flex: 1;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.drawer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 4px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}
.drawer-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}
.drawer-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    margin-bottom: 6px;
}
.drawer-card span { font-size: 11px; }

/* --------------------------------------------------------------------------
   11. QUICK PANEL
   -------------------------------------------------------------------------- */
.quick-panel {
    position: fixed;
    bottom: calc(var(--taskbar-height) + 10px);
    right: 12px;
    width: 280px;
    background: var(--surface-glass);
    backdrop-filter: blur(var(--blur-val));
    -webkit-backdrop-filter: blur(var(--blur-val));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    display: none;
    flex-direction: column;
    gap: 14px;
    z-index: 1200;
}
.quick-panel.open { display: flex; }

.panel-header { display: flex; justify-content: space-between; align-items: center; }
.panel-title { font-size: 13px; font-weight: 600; }
.device-pill { font-size: 10px; color: var(--accent); font-weight: 600; }

.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick-tile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
}
.quick-tile.active {
    background: var(--accent);
    color: #fff;
}

.slider-block { display: flex; flex-direction: column; gap: 8px; }
.slider-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
}
.range-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
}
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}
.panel-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   12. BOTTOM TASKBAR (PRODUCTION DESIGN)
   -------------------------------------------------------------------------- */
.desktop-taskbar {
    height: var(--taskbar-height);
    background: var(--surface-glass);
    backdrop-filter: blur(var(--blur-val));
    -webkit-backdrop-filter: blur(var(--blur-val));
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    z-index: 1000;
}

.taskbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.launcher-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}
.launcher-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

.nav-cluster {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 2px;
}
.nav-key {
    width: 30px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.12s ease;
}
.nav-key:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.taskbar-center {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 16px;
    overflow-x: auto;
}

.task-tab {
    position: relative;
    height: 34px;
    padding: 0 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.12s ease;
}
.task-tab:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
}
.task-tab.active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}
.task-tab.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
}

.taskbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tray-action-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.12s ease;
}
.tray-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.tray-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.tray-pill:hover {
    background: rgba(255, 255, 255, 0.08);
}
.battery-readout {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
}

.tray-clock {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 2px 6px;
    cursor: pointer;
}
.clock-time { font-size: 12px; font-weight: 600; line-height: 1.1; }
.clock-date { font-size: 10px; color: var(--text-muted); }

.desktop-peek {
    width: 4px;
    height: 24px;
    border-left: 1px solid var(--border-subtle);
    margin-left: 4px;
    cursor: pointer;
}
.desktop-peek:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* FILES */
.files-body { display: flex; flex-direction: column; }
.file-nav-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-subtle);
}
.nav-icon-btn {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
}
.breadcrumb-path {
    flex: 1;
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}
.file-list-grid {
    flex: 1;
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}
.file-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    text-align: center;
}
.file-row:hover { background: rgba(255, 255, 255, 0.06); }
.folder-icon { font-size: 28px; color: #f59e0b; margin-bottom: 4px; }

/* UTILITY */
.text-green { color: #10b981; }
.text-accent { color: var(--accent); }
