/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables for Theme System */
:root {
    /* Retro Theme (Default) */
    --bg-primary: linear-gradient(45deg, #000000 0%, #1a0a00 50%, #000000 100%);
    --bg-secondary: linear-gradient(145deg, #000000 0%, #1a0a00 100%);
    --bg-panel: linear-gradient(135deg, rgba(255, 165, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    --bg-grid: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 165, 0, 0.02) 2px, rgba(255, 165, 0, 0.02) 4px);
    
    --color-primary: #ffa500;
    --color-secondary: #ffcc77;
    --color-accent: #ff8800;
    --color-text: #ffa500;
    --color-text-dim: rgba(255, 165, 0, 0.8);
    --color-text-muted: rgba(255, 165, 0, 0.5);
    
    --border-primary: 2px solid #ffa500;
    --border-secondary: 1px solid rgba(255, 165, 0, 0.3);
    --border-radius: 0;
    
    --shadow-glow: 0 0 10px rgba(255, 165, 0, 0.5);
    --shadow-inset: inset 0 0 10px rgba(255, 165, 0, 0.1);
    --text-shadow-glow: 0 0 5px #ffa500;
    
    --font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    --font-size: 14px;
    --font-size-small: 12px;
    
    --animation-scan: scan-line 3s linear infinite;
    --animation-pulse: pulse-amber 2s infinite;
    --transition-smooth: all 0.3s ease;
}

/* Focus Theme - Evangelion Unit-01 (evangelion.nvim) */
[data-theme="focus"] {
    /* EVA-01 Background Colors (from evangelion.nvim) */
    --bg-primary: #201430;         /* midnight - main bg */
    --bg-secondary: #39274D;       /* balthasar - secondary bg */
    --bg-panel: #402C56;           /* melchior - panel bg */
    --bg-current-line: #39274C;    /* casper - current line */
    --bg-grid: none;

    /* EVA-01 Primary Colors */
    --color-primary: #B968FC;      /* atfield - bright purple */
    --color-secondary: #87FF5F;    /* kaworu - neon green */
    --color-accent: #D99145;       /* lcl - orange */
    --color-green: #8EDF5F;        /* terminaldogma - lime green */
    --color-orange: #D99145;       /* lcl - orange */
    --color-red: #DB6088;          /* misato - pink/error */
    --color-yellow: #E6BB85;       /* penpen - light orange */
    --color-pink: #C586C0;         /* asuska - mauve */
    --color-cyan: #A4D2EC;         /* adam - light cyan */
    --color-purple: #875FAF;       /* unit01 - medium purple */

    /* EVA-01 Text Colors */
    --color-text: #E1D6F8;         /* rei - primary text */
    --color-text-dim: #D4D4D4;     /* angel - secondary text */
    --color-text-muted: #A1A0AD;   /* shinji - comments/muted */

    /* EVA-01 Borders */
    --border-primary: 1px solid #B968FC;
    --border-secondary: 1px solid #39274D;
    --border-radius: 4px;

    --shadow-glow: none;
    --shadow-inset: none;
    --text-shadow-glow: none;

    --font-family: 'Segoe UI', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size: 14px;
    --font-size-small: 12px;

    --animation-scan: none;
    --animation-pulse: none;
    --transition-smooth: all 0.2s ease;
}

.hidden {
    display: none;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    background-size: 50px 50px;
    color: var(--color-text);
    height: 100vh;
    overflow: hidden;
    transition: var(--transition-smooth);
}

body:not([data-theme="focus"]) {
    background-image: 
        linear-gradient(0deg, transparent 24%, rgba(255, 165, 0, 0.05) 25%, rgba(255, 165, 0, 0.05) 26%, transparent 27%, transparent 74%, rgba(255, 165, 0, 0.05) 75%, rgba(255, 165, 0, 0.05) 76%, transparent 77%), 
        linear-gradient(90deg, transparent 24%, rgba(255, 165, 0, 0.05) 25%, rgba(255, 165, 0, 0.05) 26%, transparent 27%, transparent 74%, rgba(255, 165, 0, 0.05) 75%, rgba(255, 165, 0, 0.05) 76%, transparent 77%);
    animation: scanlines 2s linear infinite;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Header */
.header {
    background: var(--bg-secondary);
    border-bottom: var(--border-primary);
    box-shadow: var(--shadow-glow), var(--shadow-inset);
    padding: 16px 24px;
    min-height: 70px;
    position: relative;
    transition: var(--transition-smooth);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-grid);
    pointer-events: none;
}

[data-theme="focus"] .header {
    background: linear-gradient(180deg, #201430 0%, #39274D 100%);
    border-bottom: 2px solid #B968FC;
    box-shadow: 0 4px 15px rgba(185, 104, 252, 0.3);
}

[data-theme="focus"] .header::before {
    display: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 26px;
    font-weight: 700;
    font-family: var(--font-family);
    color: var(--color-primary);
    text-shadow: var(--text-shadow-glow);
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    transition: var(--transition-smooth);
}

.header h1::before {
    content: '> ';
    color: var(--color-primary);
    text-shadow: var(--text-shadow-glow);
}

.header h1::after {
    content: ' <';
    color: var(--color-primary);
    text-shadow: var(--text-shadow-glow);
}

[data-theme="focus"] .header h1 {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    font-size: 24px;
    color: #87FF5F;
    text-shadow: 0 0 10px rgba(135, 255, 95, 0.5);
}

[data-theme="focus"] .header h1::before,
[data-theme="focus"] .header h1::after {
    content: '';
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--bg-panel) !important;
    border: var(--border-secondary) !important;
    color: var(--color-text-dim) !important;
    font-size: var(--font-size-small) !important;
    font-family: var(--font-family) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px !important;
    transition: var(--transition-smooth) !important;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--color-primary) !important;
    color: #000000 !important;
    border-color: var(--color-primary) !important;
    transform: translateY(-1px) !important;
}

.theme-toggle svg {
    margin-right: 4px;
    transition: var(--transition-smooth);
}

[data-theme="focus"] .theme-toggle {
    border-radius: var(--border-radius) !important;
}

[data-theme="focus"] .theme-toggle:hover {
    box-shadow: none !important;
    text-shadow: none !important;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Status Badges */
.status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
}

.status-badge.connected {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: #000000;
    border: 1px solid var(--color-primary);
    box-shadow: var(--shadow-glow), var(--shadow-inset);
    animation: var(--animation-pulse);
    transition: var(--transition-smooth);
}

[data-theme="focus"] .status-badge.connected {
    background: #8EDF5F;
    border: 1px solid #87FF5F;
    border-radius: var(--border-radius);
    color: #201430;
    box-shadow: 0 0 10px rgba(135, 255, 95, 0.5);
}

.status-badge.disconnected {
    background: linear-gradient(135deg, #ff0000 0%, #ff4444 100%);
    color: #000000;
    border: 1px solid #ff4444;
    box-shadow: 
        0 0 5px #ff4444,
        0 0 10px #ff4444,
        inset 0 0 5px rgba(255, 68, 68, 0.2);
    animation: pulse-red 2s infinite;
    transition: var(--transition-smooth);
}

[data-theme="focus"] .status-badge.disconnected {
    background: #DB6088;
    border: 1px solid #DB6088;
    color: #201430;
    box-shadow: 0 0 10px rgba(219, 96, 136, 0.5);
    animation: none;
    border-radius: var(--border-radius);
}

.status-badge.connecting {
    background: linear-gradient(135deg, #ffab00 0%, #ff6f00 100%);
    color: #0a0a0b;
    box-shadow: 0 4px 20px rgba(255, 171, 0, 0.4);
    transition: var(--transition-smooth);
}

[data-theme="focus"] .status-badge.connecting {
    background: #D99145;
    border: 1px solid #D99145;
    color: #201430;
    box-shadow: 0 0 10px rgba(217, 145, 69, 0.5);
    border-radius: var(--border-radius);
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: var(--border-primary);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: var(--font-size);
    font-weight: 600;
    font-family: var(--font-family);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    background: var(--bg-panel);
    color: var(--color-primary);
    box-shadow: var(--shadow-glow), var(--shadow-inset);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 165, 0, 0.4), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* Focus theme button styles */
[data-theme="focus"] .btn {
    background: var(--bg-panel);
    border: var(--border-primary);
    color: var(--color-text);
    text-transform: none;
    letter-spacing: 0;
    font-family: var(--font-family);
    border-radius: var(--border-radius);
}

[data-theme="focus"] .btn::before {
    display: none;
}

[data-theme="focus"] .btn:hover {
    background: #39274D;
    color: #87FF5F;
    border-color: #87FF5F;
    box-shadow: 0 0 8px rgba(135, 255, 95, 0.4);
}

.btn:hover {
    background: rgba(255, 165, 0, 0.2);
    box-shadow: 
        0 0 10px rgba(255, 165, 0, 0.8),
        inset 0 0 10px rgba(255, 165, 0, 0.2);
    transform: translateY(-2px) scale(1.05);
    border-color: #ff8800;
    text-shadow: 0 0 5px #ffa500;
}

.btn.btn-primary:hover {
    background: rgba(255, 165, 0, 0.2);
    border-color: #ff8800;
    color: #ffa500;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 0 10px rgba(255, 165, 0, 0.8),
        inset 0 0 10px rgba(255, 165, 0, 0.2);
    text-shadow: 0 0 5px #ffa500;
}

/* Focus theme button hover - evangelion.nvim colors */
[data-theme="focus"] .btn:hover {
    background: #39274D !important;
    border-color: #87FF5F !important;
    color: #87FF5F !important;
    transform: none !important;
    box-shadow: 0 0 12px rgba(135, 255, 95, 0.5) !important;
    text-shadow: none !important;
}

[data-theme="focus"] .btn.btn-primary:hover {
    background: #875FAF !important;
    border-color: #87FF5F !important;
    color: #87FF5F !important;
    transform: none !important;
    box-shadow: 0 0 15px rgba(135, 95, 175, 0.6), 0 0 8px rgba(135, 255, 95, 0.4) !important;
    text-shadow: none !important;
}

[data-theme="focus"] .btn.btn-success:hover {
    background: #87FF5F !important;
    border-color: #87FF5F !important;
    color: #201430 !important;
    transform: none !important;
    box-shadow: 0 0 15px rgba(135, 255, 95, 0.6) !important;
    text-shadow: none !important;
}

[data-theme="focus"] .btn.btn-danger:hover {
    background: #DB6088 !important;
    border-color: #DB6088 !important;
    color: #201430 !important;
    transform: none !important;
    box-shadow: 0 0 15px rgba(219, 96, 136, 0.6) !important;
    text-shadow: none !important;
}

.btn.btn-primary {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #ffa500;
    color: #ffa500;
    box-shadow:
        0 0 5px rgba(255, 165, 0, 0.5),
        inset 0 0 5px rgba(255, 165, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    animation: pulse-amber 2s infinite;
}

/* Focus theme btn-primary base state - evangelion.nvim */
[data-theme="focus"] .btn.btn-primary {
    background: #B968FC;
    border: 1px solid #B968FC;
    color: #201430;
    box-shadow: 0 0 10px rgba(185, 104, 252, 0.4);
    text-transform: none;
    letter-spacing: 0;
    animation: none;
}

.btn.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 165, 0, 0.4), transparent);
    transition: left 0.5s;
}

.btn.btn-primary:hover::before {
    left: 100%;
}

[data-theme="focus"] .btn.btn-primary::before {
    display: none;
}

.btn.btn-primary:hover {
    background: linear-gradient(135deg, #00b8d4 0%, #3d5afe 100%);
    box-shadow: 0 8px 32px rgba(0, 229, 255, 0.4);
    transform: translateY(-2px) scale(1.02);
}

.btn.btn-success {
    background: linear-gradient(135deg, #00e676 0%, #1de9b6 100%);
    color: #0a0a0b;
    box-shadow: 0 4px 20px rgba(0, 230, 118, 0.3);
    border: none;
    transition: var(--transition-smooth);
}

[data-theme="focus"] .btn.btn-success {
    background: #8EDF5F;
    color: #201430;
    border: 1px solid #87FF5F;
    box-shadow: 0 0 10px rgba(142, 223, 95, 0.4);
    border-radius: 3px;
}

.btn.btn-success:hover {
    background: linear-gradient(135deg, #00c853 0%, #00e676 100%);
    box-shadow: 0 8px 32px rgba(0, 230, 118, 0.4);
    transform: translateY(-2px) scale(1.02);
}

.btn.btn-danger {
    background: linear-gradient(135deg, #ff1744 0%, #f50057 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 23, 68, 0.3);
    border: none;
    transition: var(--transition-smooth);
}

[data-theme="focus"] .btn.btn-danger {
    background: #DB6088;
    color: #201430;
    border: 1px solid #DB6088;
    box-shadow: 0 0 10px rgba(219, 96, 136, 0.4);
    border-radius: 3px;
}

.btn.btn-danger:hover {
    background: linear-gradient(135deg, #d50000 0%, #ff1744 100%);
    box-shadow: 0 8px 32px rgba(255, 23, 68, 0.4);
    transform: translateY(-2px) scale(1.02);
}

.btn.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 10px;
}

[data-theme="focus"] .btn.btn-sm {
    border-radius: var(--border-radius);
}

.btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    border-color: var(--color-text-muted);
    color: var(--color-text-muted);
    background: rgba(0, 0, 0, 0.8);
    transition: var(--transition-smooth);
}

[data-theme="focus"] .btn:disabled {
    border-color: #6272a4;
    color: #6272a4;
    background: #1b1c21;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    gap: 0;
    overflow: hidden;
}

/* Panel Styles */
.main-panel {
    flex: 1;
    background: var(--bg-secondary);
    border: var(--border-secondary);
    box-shadow: var(--shadow-glow), var(--shadow-inset);
    display: flex;
    flex-direction: column;
    position: relative;
    border-right: var(--border-primary);
    transition: var(--transition-smooth);
}

.main-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-grid);
    pointer-events: none;
}

[data-theme="focus"] .main-panel::before {
    display: none;
}

[data-theme="focus"] .main-panel {
    border-radius: var(--border-radius);
    border-right: var(--border-secondary);
}

/* Sidebar */
.sidebar {
    width: 420px;
    background: var(--bg-secondary);
    border: var(--border-secondary);
    box-shadow: var(--shadow-glow), var(--shadow-inset);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: auto;
    transition: var(--transition-smooth);
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-grid);
    pointer-events: none;
}

[data-theme="focus"] .sidebar::before {
    display: none;
}

[data-theme="focus"] .sidebar {
    border-radius: var(--border-radius);
    border-left: var(--border-secondary);
}

.sidebar-section {
    border-bottom: var(--border-secondary);
    position: relative;
    z-index: 1;
    transition: var(--transition-smooth);
}

.sidebar-section:last-child {
    border-bottom: none;
    flex: 1;
}

[data-theme="focus"] .sidebar-section {
    border-bottom: 1px solid #1b1c21;
}

.panel-header {
    background: var(--bg-panel);
    border-bottom: var(--border-primary);
    box-shadow: var(--shadow-glow);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
    position: relative;
    transition: var(--transition-smooth);
}

.panel-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    animation: var(--animation-scan);
}

[data-theme="focus"] .panel-header {
    background: linear-gradient(180deg, #402C56 0%, #39274D 100%);
    border-bottom: 2px solid #B968FC;
    box-shadow: 0 2px 8px rgba(185, 104, 252, 0.3);
}

[data-theme="focus"] .panel-header::after {
    display: none;
}

.panel-header h3 {
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-family);
    color: var(--color-primary);
    text-shadow: var(--text-shadow-glow);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}

[data-theme="focus"] .panel-header h3 {
    color: #87FF5F;
    text-shadow: 0 0 8px rgba(135, 255, 95, 0.5);
    text-transform: none;
    letter-spacing: 0;
    font-family: var(--font-family);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 4px;
    flex: 1;
}

.tab {
    padding: 10px 18px;
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    font-weight: 500;
    font-size: 14px;
    font-family: var(--font-family);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 5px;
    opacity: 0.6;
}

[data-theme="focus"] .tab {
    border: 1px solid #67478A;
    color: #E1D6F8;
    text-transform: none;
    letter-spacing: 0;
    background: rgba(103, 71, 138, 0.3);
    border-radius: var(--border-radius);
}

.tab:hover {
    color: var(--color-primary);
    background: rgba(255, 165, 0, 0.1);
    box-shadow: var(--shadow-glow);
    opacity: 0.8;
}

[data-theme="focus"] .tab:hover {
    color: #87FF5F;
    background: rgba(135, 255, 95, 0.15);
    box-shadow: 0 0 8px rgba(135, 255, 95, 0.3);
    opacity: 1;
}

.tab.active {
    color: var(--color-primary);
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.2), rgba(255, 165, 0, 0.1));
    box-shadow: var(--shadow-glow), var(--shadow-inset);
    opacity: 1;
    text-shadow: var(--text-shadow-glow);
}

[data-theme="focus"] .tab.active {
    color: #87FF5F;
    background: linear-gradient(135deg, rgba(185, 104, 252, 0.3), rgba(135, 255, 95, 0.15));
    border-color: #87FF5F;
    box-shadow: 0 0 12px rgba(135, 255, 95, 0.4), inset 0 0 8px rgba(185, 104, 252, 0.3);
    text-shadow: 0 0 8px rgba(135, 255, 95, 0.5);
}

/* Tab Content */
.tab-content {
    flex: 1;
    overflow: hidden;
}

.tab-content.hidden {
    display: none;
}

/* Editor Actions */
.editor-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.filename-input {
    background: rgba(0, 0, 0, 0.8);
    border: var(--border-primary);
    color: var(--color-primary);
    padding: 6px 12px;
    border-radius: var(--border-radius);
    width: 140px;
    font-size: var(--font-size-small);
    font-family: var(--font-family);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-glow), var(--shadow-inset);
    text-transform: uppercase;
    letter-spacing: 1px;
}

[data-theme="focus"] .filename-input {
    background: #39274D;
    border: 1px solid #67478A;
    color: #E1D6F8;
    text-transform: none;
    letter-spacing: 0;
    font-family: var(--font-family);
    box-shadow: none;
    border-radius: 3px;
}

.filename-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: var(--shadow-glow), var(--shadow-inset);
    background: rgba(255, 165, 0, 0.1);
    text-shadow: var(--text-shadow-glow);
}

[data-theme="focus"] .filename-input:focus {
    border-color: #87FF5F;
    background: #39274D;
    box-shadow: 0 0 0 2px rgba(135, 255, 95, 0.4);
    text-shadow: none;
}

/* Code Editor */
#codeEditor {
    height: 100%;
}

.CodeMirror {
    font-family: var(--font-family) !important;
    font-size: var(--font-size) !important;
    line-height: 1.6 !important;
    height: 100% !important;
    background: #000000 !important;
    color: var(--color-text) !important;
    position: relative;
    transition: var(--transition-smooth) !important;
}

.CodeMirror::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-grid);
    pointer-events: none;
    z-index: 1;
}

/* Focus theme CodeMirror - evangelion.nvim */
[data-theme="focus"] .CodeMirror {
    background: #201430 !important;
    color: #E1D6F8 !important;
    font-family: 'Consolas', 'SF Mono', 'Monaco', monospace !important;
}

[data-theme="focus"] .CodeMirror::before {
    display: none;
}

.CodeMirror-gutters {
    background: var(--bg-secondary) !important;
    border-right: var(--border-primary) !important;
    box-shadow: var(--shadow-glow) !important;
    transition: var(--transition-smooth) !important;
}

[data-theme="focus"] .CodeMirror-gutters {
    background: #39274D !important;
    border-right: 1px solid #67478A !important;
    box-shadow: none !important;
}

.CodeMirror-linenumber {
    color: var(--color-primary) !important;
    padding: 0 12px !important;
    font-weight: 500 !important;
    text-shadow: var(--text-shadow-glow) !important;
    opacity: 0.7 !important;
    transition: var(--transition-smooth) !important;
}

[data-theme="focus"] .CodeMirror-linenumber {
    color: #A1A0AD !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

.CodeMirror-cursor {
    border-left: 2px solid var(--color-primary) !important;
    box-shadow: var(--shadow-glow) !important;
    animation: cursor-glow-amber 1s infinite;
    transition: var(--transition-smooth) !important;
}

[data-theme="focus"] .CodeMirror-cursor {
    border-left: 2px solid #D99145 !important;
    box-shadow: 0 0 5px rgba(217, 145, 69, 0.5) !important;
    animation: none !important;
}

@keyframes cursor-glow-amber {
    0%, 50% { 
        opacity: 1;
        box-shadow: 0 0 5px #ffa500;
    }
    51%, 100% { 
        opacity: 0;
        box-shadow: 0 0 10px #ffa500;
    }
}

.CodeMirror-selected {
    background: rgba(255, 165, 0, 0.15) !important;
    box-shadow: var(--shadow-glow) !important;
}

[data-theme="focus"] .CodeMirror-selected {
    background: rgba(142, 223, 95, 0.3) !important;
    box-shadow: none !important;
}

.CodeMirror-activeline-background {
    background: rgba(255, 255, 255, 0.03) !important;
}

[data-theme="focus"] .CodeMirror-activeline-background {
    background: #39274C !important;
}

/* File Manager */
.file-manager-container {
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 16px;
    padding: 16px;
}

.upload-area {
    background: var(--bg-panel);
    border-radius: var(--border-radius);
    padding: 16px;
    position: relative;
    border: var(--border-secondary);
}

.upload-dropzone {
    border: 2px dashed var(--color-text-muted);
    border-radius: var(--border-radius);
    padding: 40px 20px;
    text-align: center;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
    border-color: var(--color-primary);
    background: rgba(255, 165, 0, 0.05);
}

.upload-dropzone i {
    font-size: 48px;
    color: var(--color-primary);
    margin-bottom: 16px;
    display: block;
}

.upload-dropzone h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: var(--color-text);
}

[data-theme="focus"] .upload-dropzone h3 {
    color: #f8f8f2;
}

.upload-dropzone p {
    margin: 0 0 16px 0;
    color: var(--color-text-muted);
}

[data-theme="focus"] .upload-dropzone p {
    color: #f8f8f2;
    opacity: 0.7;
}

/* Upload Progress Overlay */
.upload-progress-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-panel);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.upload-progress-content {
    text-align: center;
    padding: 24px;
    width: 100%;
    max-width: 280px;
}

.upload-progress-content i {
    color: var(--color-primary);
    margin-bottom: 16px;
    animation: pulse 1.5s ease-in-out infinite;
}

[data-theme="focus"] .upload-progress-content i {
    color: #bd93f9;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.upload-progress-content h3 {
    font-size: 14px;
    color: var(--color-text);
    margin-bottom: 16px;
    word-break: break-all;
}

[data-theme="focus"] .upload-progress-content h3 {
    color: #f8f8f2;
}

.upload-progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.upload-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--color-primary);
    border-radius: 4px;
    transition: width 0.2s ease;
}

.upload-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--color-text-muted);
}

[data-theme="focus"] .upload-progress-info {
    color: #f8f8f2;
    opacity: 0.8;
}

#uploadProgressPercent {
    font-weight: 600;
    color: var(--color-primary);
}

/* File Browser */
.file-browser {
    background: var(--bg-panel);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    border: var(--border-secondary);
    overflow: hidden;
}

.file-toolbar {
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: var(--border-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breadcrumb {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--color-text);
}

[data-theme="focus"] .breadcrumb {
    color: #f8f8f2;
    font-family: 'Consolas', 'Monaco', monospace;
}

.file-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

[data-theme="focus"] .btn-icon {
    color: #f8f8f2;
}

.btn-icon:hover {
    background: var(--bg-panel);
    color: var(--color-primary);
}

.btn-icon:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.file-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    gap: 12px;
    margin-bottom: 2px;
    font-family: var(--font-family);
    color: var(--color-text-dim);
}

[data-theme="focus"] .file-item {
    color: #f8f8f2;
}

.file-item:hover {
    background: rgba(255, 165, 0, 0.1);
    color: var(--color-primary);
}

.file-item.selected {
    background: rgba(255, 165, 0, 0.2);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.file-item .file-icon {
    width: 20px;
    text-align: center;
    color: inherit;
}

.file-item .file-icon.folder {
    color: #f0c36d;
}

[data-theme="focus"] .file-item .file-icon.folder {
    color: #D99145;
}

[data-theme="focus"] .file-item .file-icon {
    color: #A4D2EC;
}

.file-item .file-name {
    flex: 1;
    font-size: 13px;
}

.file-item .file-size {
    font-size: 12px;
    color: var(--color-text-muted);
    min-width: 60px;
    text-align: right;
}

[data-theme="focus"] .file-item .file-size {
    color: #6272a4;
}

.placeholder {
    color: var(--color-text-muted);
    font-family: var(--font-family);
    text-align: center;
    padding: 60px 20px;
    font-style: italic;
}

[data-theme="focus"] .placeholder {
    color: #f8f8f2;
    opacity: 0.6;
    font-style: normal;
}

/* Focus theme overrides - evangelion.nvim */
[data-theme="focus"] .upload-area,
[data-theme="focus"] .file-browser {
    background: #39274D;
    border: 1px solid #67478A;
}

[data-theme="focus"] .upload-dropzone {
    border-color: #67478A;
}

[data-theme="focus"] .upload-dropzone:hover,
[data-theme="focus"] .upload-dropzone.dragover {
    border-color: #87FF5F;
    background: rgba(135, 255, 95, 0.1);
}

[data-theme="focus"] .upload-dropzone i {
    color: #87FF5F;
}

[data-theme="focus"] .file-toolbar {
    background: #402C56;
    border-bottom: 1px solid #67478A;
}

[data-theme="focus"] .btn-icon:hover {
    background: #39274D;
    color: #87FF5F;
}

[data-theme="focus"] .file-item:hover {
    background: rgba(135, 255, 95, 0.1);
    color: #E1D6F8;
}

[data-theme="focus"] .file-item.selected {
    background: rgba(185, 104, 252, 0.3);
    color: #87FF5F;
    border: 1px solid #87FF5F;
}

[data-theme="focus"] .upload-progress-bar {
    background: linear-gradient(90deg, #B968FC, #87FF5F);
}

[data-theme="focus"] #uploadProgressPercent {
    color: #87FF5F;
}

/* Terminal */
.terminal-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.terminal-output {
    flex: 1;
    background: #000000;
    padding: 16px;
    overflow-y: auto;
    font-family: var(--font-family);
    font-size: 13px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-all;
    border: var(--border-primary);
    box-shadow: var(--shadow-glow), var(--shadow-inset);
    margin: 8px;
    border-radius: var(--border-radius);
    position: relative;
    transition: var(--transition-smooth);
}

.terminal-output::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 18px,
        rgba(255, 165, 0, 0.02) 18px,
        rgba(255, 165, 0, 0.02) 20px
    );
    pointer-events: none;
    animation: terminal-scan 4s linear infinite;
}

/* Focus theme terminal - evangelion.nvim */
[data-theme="focus"] .terminal-output {
    background: #201430;
    border: var(--border-secondary);
    color: #E1D6F8;
    font-family: 'Consolas', 'Monaco', monospace;
}

[data-theme="focus"] .terminal-output::before {
    display: none;
}

.terminal-input-container {
    display: flex;
    align-items: center;
    background: var(--bg-panel);
    border-top: var(--border-primary);
    box-shadow: var(--shadow-glow);
    padding: 12px 16px;
    gap: 12px;
    position: relative;
    transition: var(--transition-smooth);
}

.terminal-input-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    animation: var(--animation-scan);
}

[data-theme="focus"] .terminal-input-container {
    background: #39274D;
    border-top: 1px solid #67478A;
    box-shadow: none;
}

[data-theme="focus"] .terminal-input-container::before {
    display: none;
}

.prompt {
    color: var(--color-primary);
    font-family: var(--font-family);
    font-weight: bold;
    text-shadow: var(--text-shadow-glow);
    animation: var(--animation-pulse);
    transition: var(--transition-smooth);
}

[data-theme="focus"] .prompt {
    color: #87FF5F;
    text-shadow: 0 0 8px rgba(135, 255, 95, 0.5);
    animation: none;
    font-family: 'Consolas', 'Monaco', monospace;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--color-primary);
    font-family: var(--font-family);
    font-size: 14px;
    outline: none;
    padding: 8px;
    text-shadow: var(--text-shadow-glow);
    transition: var(--transition-smooth);
}

[data-theme="focus"] .terminal-input {
    color: #f8f8f2;
    text-shadow: none;
    font-family: 'Consolas', 'Monaco', monospace;
}

.terminal-input::placeholder {
    color: var(--color-text-muted);
    font-style: italic;
}

[data-theme="focus"] .terminal-input::placeholder {
    color: #6272a4;
    font-style: normal;
}

/* Terminal Output Styling */
.log-info { 
    color: #ffff88;
    text-shadow: 0 0 8px rgba(255, 255, 136, 0.5);
}

[data-theme="focus"] .log-info {
    color: #AB92FC;
    text-shadow: 0 0 5px rgba(171, 146, 252, 0.4);
}

.log-error { 
    color: #ff0000;
    font-weight: 600;
    text-shadow: 
        0 0 5px #ff0000,
        0 0 10px #ff0000;
    animation: error-glow 1s ease-in-out infinite alternate;
}

[data-theme="focus"] .log-error {
    color: #DB6088;
    text-shadow: 0 0 8px rgba(219, 96, 136, 0.5);
    animation: none;
}

.log-warning { 
    color: #ffab00;
    font-weight: 500;
    text-shadow: 0 0 8px rgba(255, 171, 0, 0.3);
}

[data-theme="focus"] .log-warning {
    color: #D99145;
    text-shadow: 0 0 5px rgba(217, 145, 69, 0.4);
}

.log-success { 
    color: #88ff88;
    font-weight: 600;
    text-shadow: 
        0 0 5px #88ff88,
        0 0 10px #88ff88;
}

[data-theme="focus"] .log-success {
    color: #8EDF5F;
    text-shadow: 0 0 8px rgba(142, 223, 95, 0.5);
}

.log-command { 
    color: #ffdd44;
    font-weight: 700;
    text-shadow: 
        0 0 5px #ffdd44,
        0 0 10px #ffdd44;
    background: rgba(255, 221, 68, 0.1);
    padding: 2px 4px;
    border-left: 2px solid #ffdd44;
}

[data-theme="focus"] .log-command {
    color: #87FF5F;
    text-shadow: 0 0 5px rgba(135, 255, 95, 0.5);
    background: rgba(185, 104, 252, 0.2);
    border-left-color: #87FF5F;
}

.log-response { 
    color: #ffa500;
    text-shadow: 0 0 3px #ffa500;
}

[data-theme="focus"] .log-response {
    color: #f8f8f2;
    text-shadow: none;
}

.terminal-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 2px solid #ffa500;
    box-shadow: 
        0 0 10px rgba(255, 165, 0, 0.5),
        inset 0 0 10px rgba(255, 165, 0, 0.1);
    padding: 10px;
    margin: 10px;
    background: rgba(255, 165, 0, 0.05);
    transition: var(--transition-smooth);
}

/* Hide terminal image in Focus theme */
[data-theme="focus"] .terminal-image {
    display: none;
}

/* Hide the entire image section in Focus theme */
[data-theme="focus"] .sidebar-section:first-child {
    display: none;
}

/* Quick Commands */
.quick-commands {
    background: var(--bg-panel);
    padding: 16px;
    position: relative;
    z-index: 1;
    transition: var(--transition-smooth);
}

[data-theme="focus"] .quick-commands {
    background: #1b1c21;
    border-top: 1px solid #6272a4;
}

.sidebar .quick-commands::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ffa500, transparent);
    animation: scan-line 3s linear infinite;
}

/* Documentation */
.documentation {
    padding: 16px;
    background: var(--bg-panel);
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

[data-theme="focus"] .documentation {
    background: #1b1c21;
}

.documentation h4 {
    font-size: 14px;
    color: var(--color-primary);
    font-family: var(--font-family);
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: var(--text-shadow-glow);
    border-bottom: var(--border-secondary);
    padding-bottom: 8px;
    transition: var(--transition-smooth);
}

[data-theme="focus"] .documentation h4 {
    color: #f8f8f2;
    text-shadow: none;
    text-transform: none;
    letter-spacing: 0;
    font-family: var(--font-family);
    border-bottom: 1px solid #6272a4;
}

.docs-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
}

.doc-section {
    margin-bottom: 20px;
}

.doc-section h5 {
    font-size: 12px;
    color: var(--color-secondary);
    font-family: var(--font-family);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: var(--text-shadow-glow);
    border-left: 2px solid var(--color-primary);
    padding-left: 8px;
    transition: var(--transition-smooth);
}

[data-theme="focus"] .doc-section h5 {
    color: #8be9fd;
    text-shadow: none;
    text-transform: none;
    letter-spacing: 0;
    font-family: var(--font-family);
    border-left-color: #bd93f9;
}

.doc-item {
    margin-bottom: 12px;
    padding: 8px;
    background: rgba(255, 165, 0, 0.05);
    border-left: var(--border-secondary);
    transition: var(--transition-smooth);
}

[data-theme="focus"] .doc-item {
    background: rgba(68, 71, 90, 0.5);
    border-left: 1px solid #6272a4;
}

.doc-item:hover {
    background: rgba(255, 165, 0, 0.1);
    border-left-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

[data-theme="focus"] .doc-item:hover {
    background: rgba(189, 147, 249, 0.1);
    border-left-color: #bd93f9;
    box-shadow: none;
}

.doc-item code {
    display: block;
    font-family: var(--font-family);
    font-size: 11px;
    color: #ffdd88;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    margin-bottom: 4px;
    border: var(--border-secondary);
    text-shadow: var(--text-shadow-glow);
    word-break: break-all;
    transition: var(--transition-smooth);
}

[data-theme="focus"] .doc-item code {
    color: #ff79c6;
    background: #282a36;
    border: 1px solid #1b1c21;
    text-shadow: none;
    font-family: 'Consolas', 'Monaco', monospace;
    border-radius: 3px;
}

.doc-item p {
    font-family: var(--font-family);
    font-size: 10px;
    color: var(--color-text-dim);
    line-height: 1.4;
    margin: 0;
    font-style: italic;
    transition: var(--transition-smooth);
}

[data-theme="focus"] .doc-item p {
    color: #f8f8f2;
    opacity: 0.7;
    font-family: var(--font-family);
    font-style: normal;
}

/* Custom scrollbar for docs */
.docs-content::-webkit-scrollbar {
    width: 8px;
}

.docs-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.docs-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ffa500 0%, #ff8800 100%);
    border-radius: 4px;
    box-shadow: 0 0 3px rgba(255, 165, 0, 0.3);
}

.docs-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff8800 0%, #ffa500 100%);
    box-shadow: 0 0 5px rgba(255, 165, 0, 0.5);
}

/* Focus theme scrollbar - Dracula */
[data-theme="focus"] .docs-content::-webkit-scrollbar-track {
    background: #21222c;
    border-radius: 4px;
}

[data-theme="focus"] .docs-content::-webkit-scrollbar-thumb {
    background: #1b1c21;
    border-radius: 4px;
    box-shadow: none;
}

[data-theme="focus"] .docs-content::-webkit-scrollbar-thumb:hover {
    background: #6272a4;
    box-shadow: none;
}

.quick-commands h4 {
    font-size: 14px;
    color: var(--color-primary);
    font-family: var(--font-family);
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: var(--text-shadow-glow);
    transition: var(--transition-smooth);
}

[data-theme="focus"] .quick-commands h4 {
    color: #f8f8f2;
    text-shadow: none;
    text-transform: none;
    letter-spacing: 0;
    font-family: var(--font-family);
}

.command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 8px;
}

.cmd-btn {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 11px;
    font-family: var(--font-family);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.cmd-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 165, 0, 0.3), transparent);
    transition: left 0.3s;
}

.cmd-btn:hover::before {
    left: 100%;
}

/* Focus theme command buttons - evangelion.nvim */
[data-theme="focus"] .cmd-btn {
    background: #39274D;
    border: 1px solid #67478A;
    color: #E1D6F8;
    text-transform: none;
    letter-spacing: 0;
    font-family: var(--font-family);
    border-radius: var(--border-radius);
}

[data-theme="focus"] .cmd-btn::before {
    background: linear-gradient(90deg, transparent, rgba(135, 255, 95, 0.2), transparent);
}

[data-theme="focus"] .cmd-btn:hover {
    background: #875FAF;
    color: #87FF5F;
    border-color: #87FF5F;
    box-shadow: 0 0 12px rgba(135, 255, 95, 0.4);
    text-shadow: 0 0 5px rgba(135, 255, 95, 0.5);
}

.cmd-btn:hover {
    background: rgba(255, 165, 0, 0.2);
    border-color: #ff8800;
    color: #ffa500;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 0 10px rgba(255, 165, 0, 0.8),
        inset 0 0 10px rgba(255, 165, 0, 0.2);
    text-shadow: 0 0 5px #ffa500;
}

/* Terminal Actions */
.terminal-actions {
    display: flex;
    gap: 12px;
}

/* Status Bar */
.status-bar {
    background: var(--bg-secondary);
    border-top: var(--border-primary);
    box-shadow: var(--shadow-glow), var(--shadow-inset);
    color: var(--color-primary);
    font-family: var(--font-family);
    padding: 8px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    min-height: 36px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: var(--transition-smooth);
    flex-wrap: wrap;
    gap: 1rem;
}

.status-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    animation: var(--animation-scan);
}

[data-theme="focus"] .status-bar {
    background: linear-gradient(180deg, #39274D 0%, #201430 100%);
    border-top: 2px solid #B968FC;
    color: #E1D6F8;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: 0 -2px 10px rgba(185, 104, 252, 0.3);
}

[data-theme="focus"] .status-bar::before {
    display: none;
}

.status-left, .status-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.separator {
    color: var(--color-text-muted);
    text-shadow: var(--text-shadow-glow);
    transition: var(--transition-smooth);
}

[data-theme="focus"] .separator {
    color: #67478A;
    text-shadow: none;
}

/* Credits Section */
.credits {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-text-muted);
    font-size: 11px;
    text-transform: none;
    letter-spacing: 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition-smooth);
    opacity: 0.8;
}

.navbar-brand:hover {
    opacity: 1;
    transform: scale(1.05);
}

.navbar-brand img {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 0 2px var(--color-primary));
    transition: var(--transition-smooth);
}

.credits p {
    margin: 0;
    line-height: 1.3;
    opacity: 0.9;
    text-shadow: var(--text-shadow-glow);
}

.credits a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-weight: 600;
}

.credits a:hover {
    opacity: 0.8;
    text-decoration: underline;
    text-shadow: 0 0 4px var(--color-primary);
}

.credits img {
    width: 14px;
    height: 14px;
    margin: 0 2px;
    opacity: 0.8;
    filter: drop-shadow(0 0 1px var(--color-primary));
}

.credits img.logo {
    height: 14px;
    width: 100%;
    opacity: 1;
}

/* Focus theme credits styling - Dracula */
[data-theme="focus"] .credits {
    color: #f8f8f2;
    text-shadow: none !important;
}

[data-theme="focus"] .navbar-brand {
    opacity: 1;
}

[data-theme="focus"] .navbar-brand:hover {
    transform: none !important;
    opacity: 0.8;
}

[data-theme="focus"] .navbar-brand img {
    filter: none !important;
}

[data-theme="focus"] .credits p {
    text-shadow: none !important;
    color: #f8f8f2;
}

[data-theme="focus"] .credits a {
    color: #87FF5F !important;
    font-weight: 500;
}

[data-theme="focus"] .credits a:hover {
    color: #D99145 !important;
    text-shadow: 0 0 5px rgba(217, 145, 69, 0.5) !important;
}

[data-theme="focus"] .credits img {
    filter: none !important;
    opacity: 1;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #000000;
    border-radius: 6px;
    border: 1px solid rgba(255, 165, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ffa500 0%, #ff8800 100%);
    border-radius: 6px;
    border: 2px solid #000000;
    box-shadow: 0 0 5px rgba(255, 165, 0, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff8800 0%, #ffa500 100%);
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.8);
}

/* Focus theme global scrollbar - Dracula */
[data-theme="focus"] ::-webkit-scrollbar-track {
    background: #21222c;
    border: 1px solid #1b1c21;
}

[data-theme="focus"] ::-webkit-scrollbar-thumb {
    background: #1b1c21;
    border: 2px solid #21222c;
    box-shadow: none;
}

[data-theme="focus"] ::-webkit-scrollbar-thumb:hover {
    background: #6272a4;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: 300px;
        border-right: none;
        border-top: 2px solid #ffa500;
        order: 2;
    }
    
    .main-panel {
        order: 1;
        border-right: none;
    }
    
    .header-content {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .connection-status {
        justify-content: center;
    }
    
    .editor-actions {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .filename-input {
        width: 120px;
        font-size: 11px;
    }
    
    .terminal-image {
        max-height: 150px;
        object-fit: contain;
    }
    
    .command-grid {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    }
    
    .documentation {
        padding: 12px;
    }
    
    .doc-item {
        padding: 6px;
        margin-bottom: 8px;
    }
    
    .doc-item code {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .doc-item p {
        font-size: 9px;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-amber {
    0%, 100% { 
        text-shadow: 0 0 5px #ffa500;
        box-shadow: 0 0 10px rgba(255, 165, 0, 0.3);
    }
    50% { 
        text-shadow: 0 0 10px #ffa500, 0 0 20px #ffa500;
        box-shadow: 0 0 20px rgba(255, 165, 0, 0.8);
    }
}

@keyframes pulse-red {
    0%, 100% { 
        text-shadow: 0 0 5px #ff4444;
        box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
    }
    50% { 
        text-shadow: 0 0 10px #ff4444, 0 0 20px #ff4444;
        box-shadow: 0 0 20px rgba(255, 68, 68, 0.8);
    }
}

@keyframes scan-line {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes terminal-scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes scanlines {
    0% { background-position: 0 0; }
    100% { background-position: 0 50px; }
}

@keyframes error-glow {
    0% { text-shadow: 0 0 5px #ff0000; }
    100% { text-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000; }
}

.fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #2a2a3a;
    border-top: 2px solid #00e5ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modern hover effects */
.btn:hover svg {
    filter: brightness(1.3) drop-shadow(0 0 5px currentColor);
}

[data-theme="focus"] .btn:hover svg {
    filter: brightness(1.1);
}

.file-item:hover .file-icon {
    opacity: 0.8;
    transform: scale(1.1);
}

[data-theme="focus"] .file-item:hover .file-icon {
    opacity: 1;
    transform: none;
}

/* Futuristic syntax highlighting */
.cm-keyword { 
    color: #ffdd88 !important; 
    font-weight: 600 !important;
    text-shadow: 0 0 3px #ffdd88 !important;
}
.cm-def { 
    color: #ffff88 !important; 
    font-weight: 600 !important;
    text-shadow: 0 0 3px #ffff88 !important;
}
.cm-variable { 
    color: #ffa500 !important;
    text-shadow: 0 0 2px #ffa500 !important;
}
.cm-variable-2 { 
    color: #ffcc44 !important;
    text-shadow: 0 0 2px #ffcc44 !important;
}
.cm-string { 
    color: #ffdd99 !important;
    text-shadow: 0 0 2px #ffdd99 !important;
}
.cm-comment { 
    color: rgba(255, 165, 0, 0.6) !important; 
    font-style: italic !important;
}
.cm-number { 
    color: #ff8800 !important; 
    font-weight: 500 !important;
    text-shadow: 0 0 3px #ff8800 !important;
}
.cm-operator { 
    color: #ffa500 !important;
    font-weight: bold !important;
}
.cm-bracket { 
    color: #ffff88 !important; 
    font-weight: bold !important;
    text-shadow: 0 0 3px #ffff88 !important;
}
.cm-property { 
    color: #ffcc77 !important;
    text-shadow: 0 0 2px #ffcc77 !important;
}
.cm-builtin {
    color: #ff6600 !important;
    text-shadow: 0 0 3px #ff6600 !important;
}

/* Focus theme syntax highlighting - evangelion.nvim */
[data-theme="focus"] .cm-keyword {
    color: #87FF5F !important;   /* kaworu - neon green */
    font-weight: 600 !important;
    text-shadow: 0 0 3px rgba(135, 255, 95, 0.4) !important;
}
[data-theme="focus"] .cm-def {
    color: #9CDA7C !important;   /* kaji - muted green */
    font-weight: 600 !important;
    text-shadow: 0 0 3px rgba(156, 218, 124, 0.4) !important;
}
[data-theme="focus"] .cm-variable {
    color: #E1D6F8 !important;   /* rei - light purple text */
    text-shadow: none !important;
}
[data-theme="focus"] .cm-variable-2 {
    color: #B968FC !important;   /* atfield - bright purple */
    text-shadow: 0 0 3px rgba(185, 104, 252, 0.3) !important;
}
[data-theme="focus"] .cm-string {
    color: #AB92FC !important;   /* dummyplug - light purple */
    text-shadow: 0 0 3px rgba(171, 146, 252, 0.3) !important;
}
[data-theme="focus"] .cm-comment {
    color: #A1A0AD !important;   /* shinji - gray */
    font-style: italic !important;
}
[data-theme="focus"] .cm-number {
    color: #8EDF5F !important;   /* terminaldogma - lime green */
    font-weight: 500 !important;
    text-shadow: 0 0 3px rgba(142, 223, 95, 0.3) !important;
}
[data-theme="focus"] .cm-operator {
    color: #B968FC !important;   /* atfield - bright purple */
    font-weight: bold !important;
}
[data-theme="focus"] .cm-bracket {
    color: #B968FC !important;   /* atfield - bright purple */
    font-weight: bold !important;
    text-shadow: none !important;
}
[data-theme="focus"] .cm-property {
    color: #A4D2EC !important;   /* adam - light cyan */
    text-shadow: 0 0 3px rgba(164, 210, 236, 0.4) !important;
}
[data-theme="focus"] .cm-builtin {
    color: #A4D2EC !important;   /* adam - light cyan */
    text-shadow: 0 0 3px rgba(164, 210, 236, 0.4) !important;
}

/* Focus indicators */
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.4);
}

[data-theme="focus"] .btn:focus {
    box-shadow: 0 0 0 3px rgba(135, 255, 95, 0.5);
}

.terminal-input:focus {
    background: rgba(0, 229, 255, 0.05);
    box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.3);
    border-radius: 6px;
}

[data-theme="focus"] .terminal-input:focus {
    background: rgba(185, 104, 252, 0.1);
    box-shadow: 0 0 0 2px rgba(135, 255, 95, 0.4);
}

/* Success/Error states for terminal */
.terminal-success {
    border-left: 3px solid #00e676;
    padding-left: 12px;
    background: linear-gradient(90deg, rgba(0, 230, 118, 0.1), transparent);
    margin: 4px 0;
    border-radius: 4px;
}

[data-theme="focus"] .terminal-success {
    border-left: 3px solid #87FF5F;
    background: linear-gradient(90deg, rgba(135, 255, 95, 0.15), transparent);
}

.terminal-error {
    border-left: 3px solid #ff1744;
    padding-left: 12px;
    background: linear-gradient(90deg, rgba(255, 23, 68, 0.1), transparent);
    margin: 4px 0;
    border-radius: 4px;
}

[data-theme="focus"] .terminal-error {
    border-left: 3px solid #DB6088;
    background: linear-gradient(90deg, rgba(219, 96, 136, 0.15), transparent);
}

/* Glass morphism effects */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Neon accents */
.neon-accent {
    text-shadow: 0 0 10px currentColor;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

/* Embedder Tab Styles */
.embedder-container {
    height: 100%;
    overflow-y: auto;
    padding: 20px;
    background: var(--bg-secondary);
}

.embedder-section {
    background: var(--bg-panel);
    border: var(--border-secondary);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-glow), var(--shadow-inset);
    transition: var(--transition-smooth);
}

[data-theme="focus"] .embedder-section {
    background: #1b1c21;
    border: 1px solid #6272a4;
    box-shadow: none;
}

.embedder-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
    text-shadow: var(--text-shadow-glow);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border-bottom: var(--border-secondary);
    padding-bottom: 10px;
}

[data-theme="focus"] .embedder-section h3 {
    color: #f8f8f2;
    text-shadow: none;
    text-transform: none;
    letter-spacing: 0;
    border-bottom: 1px solid #6272a4;
}

.status-info {
    padding: 12px 16px;
    background: rgba(0, 122, 204, 0.2);
    border: 1px solid #007acc;
    border-radius: var(--border-radius);
    color: var(--color-text);
    font-family: var(--font-family);
    font-size: 14px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-glow);
    transition: var(--transition-smooth);
}

[data-theme="focus"] .status-info {
    background: rgba(139, 233, 253, 0.15);
    border: 1px solid #8be9fd;
    box-shadow: none;
}

.status-success {
    padding: 12px 16px;
    background: rgba(0, 230, 118, 0.2);
    border: 1px solid #00e676;
    border-radius: var(--border-radius);
    color: var(--color-text);
    font-family: var(--font-family);
    font-size: 14px;
    margin-bottom: 15px;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.3);
    transition: var(--transition-smooth);
}

[data-theme="focus"] .status-success {
    background: rgba(80, 250, 123, 0.15);
    border: 1px solid #50fa7b;
    box-shadow: none;
}

.status-error {
    padding: 12px 16px;
    background: rgba(255, 23, 68, 0.2);
    border: 1px solid #ff1744;
    border-radius: var(--border-radius);
    color: var(--color-text);
    font-family: var(--font-family);
    font-size: 14px;
    margin-bottom: 15px;
    box-shadow: 0 0 10px rgba(255, 23, 68, 0.3);
    transition: var(--transition-smooth);
}

[data-theme="focus"] .status-error {
    background: rgba(255, 85, 85, 0.15);
    border: 1px solid #ff5555;
    box-shadow: none;
}

.button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.button-group.hidden {
    display: none;
}

.info-box {
    background: rgba(0, 0, 0, 0.5);
    border: var(--border-secondary);
    border-radius: var(--border-radius);
    padding: 15px;
    font-family: var(--font-family);
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-text-dim);
    overflow-x: auto;
    transition: var(--transition-smooth);
}

[data-theme="focus"] .info-box {
    background: #282a36;
    border: 1px solid #1b1c21;
}

.info-box pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: var(--color-text);
    font-family: var(--font-family);
}

.config-item {
    margin-bottom: 15px;
}

.config-item label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: var(--text-shadow-glow);
}

[data-theme="focus"] .config-item label {
    color: #8be9fd;
    text-shadow: none;
    text-transform: none;
    letter-spacing: 0;
}

.input-field {
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    border: var(--border-primary);
    color: var(--color-primary);
    padding: 10px 12px;
    border-radius: var(--border-radius);
    font-size: 13px;
    font-family: var(--font-family);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-inset);
}

[data-theme="focus"] .input-field {
    background: #1b1c21;
    border: 1px solid #6272a4;
    color: #f8f8f2;
    box-shadow: none;
}

.input-field:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: var(--shadow-glow);
    background: rgba(255, 165, 0, 0.1);
}

[data-theme="focus"] .input-field:focus {
    border-color: #bd93f9;
    background: #1b1c21;
    box-shadow: 0 0 0 2px rgba(189, 147, 249, 0.3);
}

.info-box ol {
    margin: 0;
    color: var(--color-text-dim);
}

.info-box small {
    color: var(--color-text-muted);
    font-size: 12px;
}

[data-theme="focus"] .info-box small {
    color: #6272a4;
}

/* Embedder Chat Interface */
.embedder-main-layout {
    display: flex;
    height: 100%;
    gap: 0;
}

.embedder-chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border-right: var(--border-primary);
}

.embedder-sidebar {
    width: 300px;
    background: var(--bg-panel);
    overflow-y: auto;
    padding: 16px;
}

[data-theme="focus"] .embedder-sidebar {
    background: #1b1c21;
    border-left: 1px solid #6272a4;
}

.embedder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-panel);
    border-bottom: var(--border-primary);
    box-shadow: var(--shadow-glow);
}

[data-theme="focus"] .embedder-header {
    background: #1b1c21;
    border-bottom: 1px solid #6272a4;
    box-shadow: none;
}

.embedder-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
    text-shadow: var(--text-shadow-glow);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

[data-theme="focus"] .embedder-header h3 {
    color: #f8f8f2;
    text-shadow: none;
    text-transform: none;
    letter-spacing: 0;
}

.embedder-status-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--color-text-dim);
}

[data-theme="focus"] .embedder-status-inline {
    color: #f8f8f2;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.connected {
    background: #00e676;
    box-shadow: 0 0 8px #00e676;
    animation: pulse-green 2s infinite;
}

[data-theme="focus"] .status-dot.connected {
    background: #50fa7b;
    box-shadow: none;
    animation: none;
}

.status-dot.disconnected {
    background: #ff4444;
    box-shadow: 0 0 8px #ff4444;
}

[data-theme="focus"] .status-dot.disconnected {
    background: #ff5555;
    box-shadow: none;
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 0 5px #00e676;
    }
    50% {
        box-shadow: 0 0 15px #00e676;
    }
}

.embedder-conversation {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: var(--bg-secondary);
}

[data-theme="focus"] .embedder-conversation {
    background: #282a36;
}

.embedder-welcome {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-dim);
}

[data-theme="focus"] .embedder-welcome {
    color: #f8f8f2;
}

[data-theme="focus"] .embedder-welcome p {
    color: #f8f8f2;
    opacity: 0.8;
}

[data-theme="focus"] .embedder-welcome a {
    color: #50fa7b !important;
}

.embedder-welcome h4 {
    color: var(--color-primary);
    font-size: 20px;
    margin-bottom: 16px;
    text-shadow: var(--text-shadow-glow);
}

[data-theme="focus"] .embedder-welcome h4 {
    color: #bd93f9;
    text-shadow: none;
}

.embedder-welcome p {
    margin: 8px 0;
    font-size: 14px;
}

.embedder-message {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.embedder-message.user {
    align-items: flex-end;
}

.embedder-message.assistant {
    align-items: flex-start;
}

.embedder-message-header {
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[data-theme="focus"] .embedder-message-header {
    color: #6272a4;
}

.embedder-message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 1.6;
    position: relative;
}

.embedder-message.user .embedder-message-content {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.2), rgba(255, 165, 0, 0.1));
    border: 1px solid var(--color-primary);
    color: var(--color-text);
    box-shadow: var(--shadow-glow);
}

[data-theme="focus"] .embedder-message.user .embedder-message-content {
    background: rgba(189, 147, 249, 0.2);
    border: 1px solid #bd93f9;
    box-shadow: none;
}

.embedder-message.assistant .embedder-message-content {
    background: rgba(0, 0, 0, 0.5);
    border: var(--border-secondary);
    color: var(--color-text);
}

[data-theme="focus"] .embedder-message.assistant .embedder-message-content {
    background: #1b1c21;
    border: 1px solid #6272a4;
}

.embedder-message-content pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 12px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 8px 0;
    border: var(--border-secondary);
}

[data-theme="focus"] .embedder-message-content pre {
    background: #282a36;
    border: 1px solid #1b1c21;
}

.embedder-message-content code {
    font-family: var(--font-family);
    font-size: 13px;
}

[data-theme="focus"] .embedder-message-content code {
    color: #ff79c6;
}

[data-theme="focus"] .embedder-message-content {
    color: #f8f8f2;
}

.embedder-message-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.embedder-message-actions button {
    padding: 4px 12px;
    font-size: 11px;
}

.embedder-input-container {
    background: var(--bg-panel);
    border-top: var(--border-primary);
    padding: 16px;
}

[data-theme="focus"] .embedder-input-container {
    background: #1b1c21;
    border-top: 1px solid #6272a4;
}

.embedder-input-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.embedder-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.embedder-textarea {
    flex: 1;
    background: rgba(0, 0, 0, 0.8);
    border: var(--border-primary);
    color: var(--color-text);
    padding: 12px;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 14px;
    resize: vertical;
    min-height: 60px;
    max-height: 200px;
    transition: var(--transition-smooth);
}

[data-theme="focus"] .embedder-textarea {
    background: #282a36;
    border: 1px solid #6272a4;
    color: #f8f8f2;
}

.embedder-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: var(--shadow-glow);
}

[data-theme="focus"] .embedder-textarea:focus {
    border-color: #bd93f9;
    box-shadow: 0 0 0 2px rgba(189, 147, 249, 0.3);
}

.embedder-textarea:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.embedder-send-btn {
    min-width: 100px;
    align-self: flex-end;
}

.embedder-section.compact {
    background: rgba(0, 0, 0, 0.3);
    border: var(--border-secondary);
    border-radius: var(--border-radius);
    padding: 12px;
    margin-bottom: 16px;
}

[data-theme="focus"] .embedder-section.compact {
    background: rgba(40, 42, 54, 0.8);
    border: 1px solid #1b1c21;
}

.embedder-section.compact h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    text-shadow: var(--text-shadow-glow);
}

[data-theme="focus"] .embedder-section.compact h4 {
    color: #8be9fd;
    text-shadow: none;
    text-transform: none;
    letter-spacing: 0;
}

.info-box-compact {
    background: rgba(0, 0, 0, 0.5);
    border: var(--border-secondary);
    border-radius: var(--border-radius);
    padding: 10px;
    font-size: 11px;
}

.info-box-compact pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: var(--color-text-dim);
    font-family: var(--font-family);
}

[data-theme="focus"] .info-box-compact {
    background: #282a36;
    border: 1px solid #1b1c21;
}

[data-theme="focus"] .info-box-compact pre {
    color: #f8f8f2;
}

.embedder-setting {
    margin-bottom: 12px;
}

.embedder-setting label {
    display: block;
    font-size: 12px;
    color: var(--color-text-dim);
    margin-bottom: 6px;
}

[data-theme="focus"] .embedder-setting label {
    color: #f8f8f2;
}

.embedder-setting select {
    width: 100%;
}

[data-theme="focus"] .embedder-setting select {
    background: #1b1c21;
    border: 1px solid #6272a4;
    color: #f8f8f2;
    border-radius: var(--border-radius);
    padding: 8px 12px;
}

.slider {
    width: calc(100% - 50px);
    height: 4px;
    background: rgba(255, 165, 0, 0.2);
    outline: none;
    border-radius: 2px;
}

[data-theme="focus"] .slider {
    background: rgba(189, 147, 249, 0.2);
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--color-primary);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: var(--shadow-glow);
}

.slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--color-primary);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: var(--shadow-glow);
}

.embedder-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.embedder-quick-btn {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 11px;
    font-family: var(--font-family);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: left;
    font-weight: 500;
}

[data-theme="focus"] .embedder-quick-btn {
    background: #1b1c21;
    border: 1px solid #6272a4;
    color: #f8f8f2;
}

.embedder-quick-btn:hover {
    background: rgba(255, 165, 0, 0.2);
    border-color: #ff8800;
    transform: translateX(4px);
}

[data-theme="focus"] .embedder-quick-btn:hover {
    background: #bd93f9;
    color: #282a36;
    border-color: #bd93f9;
    transform: translateX(4px);
}

.embedder-quick-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.embedder-typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    max-width: 80px;
}

.embedder-typing-dot {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.embedder-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.embedder-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-10px);
    }
}

/* Authentication Modal */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.auth-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-modal-content {
    background: var(--bg-panel);
    border: var(--border-primary);
    border-radius: 8px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-glow);
    position: relative;
    animation: slideIn 0.3s ease;
}

[data-theme="focus"] .auth-modal-content {
    background: #282a36;
    border: 1px solid #6272a4;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.auth-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.auth-modal-header h3 {
    color: var(--color-primary);
    font-size: 20px;
    font-weight: bold;
}

[data-theme="focus"] .auth-modal-header h3 {
    color: #bd93f9;
}

.auth-modal-close {
    background: none;
    border: none;
    color: var(--color-text-dim);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

[data-theme="focus"] .auth-modal-close {
    color: #f8f8f2;
}

.auth-modal-close:hover {
    color: var(--color-primary);
    transform: rotate(90deg);
}

[data-theme="focus"] .auth-modal-close:hover {
    color: #ff5555;
}

.auth-modal-body {
    text-align: center;
}

.auth-code-display {
    margin: 20px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: var(--border-secondary);
}

[data-theme="focus"] .auth-code-display {
    background: #1b1c21;
    border: 1px solid #6272a4;
}

.auth-code-url {
    display: block;
    color: var(--color-primary);
    font-size: 14px;
    margin-bottom: 15px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

[data-theme="focus"] .auth-code-url {
    color: #8be9fd;
}

.auth-code-url:hover {
    color: var(--color-secondary);
    text-shadow: var(--text-shadow-glow);
}

[data-theme="focus"] .auth-code-url:hover {
    color: #ff79c6;
    text-shadow: none;
}

.auth-code-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--color-primary);
    letter-spacing: 5px;
    text-shadow: var(--text-shadow-glow);
    font-family: var(--font-family);
    margin: 20px 0;
}

[data-theme="focus"] .auth-code-value {
    color: #50fa7b;
    text-shadow: none;
}

.auth-modal-instructions {
    color: var(--color-text-dim);
    font-size: 13px;
    margin-top: 15px;
    line-height: 1.6;
}

[data-theme="focus"] .auth-modal-instructions {
    color: #f8f8f2;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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