/* ==================== CSS Variables ==================== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: rgba(26, 26, 37, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.3);
    --sidebar-width: 260px;
    --titlebar-height: 40px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.2);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Titlebar */
.titlebar {
    height: var(--titlebar-height);
    background: var(--bg-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    -webkit-app-region: drag;
}
.titlebar-drag { flex: 1; height: 100%; display: flex; align-items: center; padding-left: 16px; }
.app-logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.app-logo svg { width: 20px; height: 20px; color: var(--accent-primary); }
.titlebar-controls { display: flex; -webkit-app-region: no-drag; }
.titlebar-btn {
    width: 46px; height: var(--titlebar-height);
    border: none; background: transparent;
    color: var(--text-secondary); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition-fast);
}
.titlebar-btn svg { width: 16px; height: 16px; }
.titlebar-btn:hover { background: rgba(255, 255, 255, 0.1); color: var(--text-primary); }
.titlebar-btn.close:hover { background: var(--danger); color: white; }

/* Layout */
.main-container { display: flex; height: calc(100vh - var(--titlebar-height)); }

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex; flex-direction: column;
    overflow-y: auto; padding: 16px 0;
}
.sidebar-section { padding: 0 12px; margin-bottom: 8px; }
.section-title {
    font-size: 11px; font-weight: 600; color: var(--text-muted);
    letter-spacing: 0.5px; padding: 12px 12px 8px; text-transform: uppercase;
}
.nav-item {
    width: 100%; display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border: none; background: transparent;
    color: var(--text-secondary); font-size: 13px; font-weight: 500;
    border-radius: var(--radius-md); cursor: pointer;
    transition: all var(--transition-fast); text-align: left;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item:hover { background: rgba(255, 255, 255, 0.05); color: var(--text-primary); }
.nav-item.active { background: var(--accent-gradient); color: white; box-shadow: var(--shadow-glow); }

/* Device Status */
.device-status {
    margin-top: auto; padding: 16px;
    border-top: 1px solid var(--border-color);
    display: flex; align-items: center; gap: 12px;
}
.status-indicator { width: 10px; height: 10px; border-radius: 50%; animation: pulse 2s infinite; }
.status-indicator.connected { background: var(--success); box-shadow: 0 0 10px var(--success); }
.status-indicator.disconnected { background: var(--text-muted); animation: none; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.status-text { display: flex; flex-direction: column; }
.status-label { font-size: 12px; font-weight: 500; }
.status-detail { font-size: 11px; color: var(--text-muted); }

/* Content */
.content { flex: 1; overflow-y: auto; padding: 24px; background: var(--bg-primary); }
.page { display: none; animation: fadeIn 0.3s ease; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.page-header { margin-bottom: 24px; }
.page-header h1 {
    font-size: 28px; font-weight: 700;
    background: var(--accent-gradient); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; margin-bottom: 4px;
}
.page-header p { color: var(--text-secondary); font-size: 14px; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); padding: 20px; transition: all var(--transition-normal);
}
.card.glass { background: var(--bg-glass); backdrop-filter: blur(20px); }
.card:hover { border-color: var(--border-glow); box-shadow: var(--shadow-glow); }
.card.full-width { grid-column: 1 / -1; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.card-header h3 { font-size: 16px; font-weight: 600; }
.card-description { color: var(--text-secondary); font-size: 13px; margin-bottom: 16px; }
.card-actions { display: flex; gap: 12px; margin-top: 16px; }
.header-actions { display: flex; gap: 8px; align-items: center; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border: none; border-radius: var(--radius-md);
    font-size: 13px; font-weight: 500; cursor: pointer; transition: all var(--transition-fast);
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent-gradient); color: white; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-primary:disabled, .btn-secondary:disabled, .btn-danger:disabled {
    background: var(--bg-tertiary); color: var(--text-muted); cursor: not-allowed; transform: none;
}
.btn-secondary { background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--accent-primary); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; }
.btn-icon { padding: 8px; background: transparent; color: var(--text-secondary); border: 1px solid var(--border-color); }
.btn-icon:hover { color: var(--accent-primary); border-color: var(--accent-primary); }

/* Quick Actions */
.quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.action-btn {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 20px; background: var(--bg-tertiary); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); color: var(--text-secondary); font-size: 12px; cursor: pointer;
}
.action-btn svg { width: 24px; height: 24px; }
.action-btn:hover:not(:disabled) { background: rgba(99, 102, 241, 0.1); border-color: var(--accent-primary); color: var(--accent-primary); }
.action-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Device Info & Empty State */
.device-info { min-height: 150px; }
.device-details { display: grid; gap: 12px; }
.detail-row { display: flex; justify-content: space-between; padding: 8px 12px; background: var(--bg-tertiary); border-radius: var(--radius-sm); }
.detail-row .label { color: var(--text-secondary); font-size: 13px; }
.detail-row .value { font-weight: 500; font-size: 13px; }
.empty-state { display: flex; flex-direction: column; align-items: center; padding: 40px; text-align: center; color: var(--text-muted); }
.empty-state svg { width: 48px; height: 48px; margin-bottom: 16px; opacity: 0.5; }
.empty-state p { font-size: 14px; margin-bottom: 4px; }

/* System Status */
.system-status { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.status-item { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--bg-tertiary); border-radius: var(--radius-md); }
.status-icon { width: 40px; height: 40px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; }
.status-icon svg { width: 20px; height: 20px; }
.status-icon.checking { background: rgba(255, 255, 255, 0.1); color: var(--text-muted); }
.status-icon.success { background: rgba(16, 185, 129, 0.15); color: var(--success); }
.status-icon.error { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.status-info { display: flex; flex-direction: column; }
.status-name { font-weight: 500; font-size: 13px; }
.status-value { font-size: 12px; color: var(--text-secondary); }

/* Terminal */
.terminal-card { height: calc(100vh - 200px); min-height: 400px; }
.terminal { height: 100%; display: flex; flex-direction: column; background: #0d0d12; border-radius: var(--radius-md); font-family: 'Consolas', monospace; }
.terminal-output { flex: 1; overflow-y: auto; padding: 16px; font-size: 13px; }
.terminal-line { margin-bottom: 4px; }
.terminal-line.command { color: var(--accent-primary); }
.terminal-line.error { color: var(--danger); }
.terminal-line.info { color: var(--text-muted); }
.terminal-input-line { display: flex; align-items: center; padding: 12px 16px; background: rgba(0, 0, 0, 0.3); border-top: 1px solid var(--border-color); }
.prompt { color: var(--success); font-weight: 500; margin-right: 8px; }
.terminal-input-line input { flex: 1; background: transparent; border: none; color: var(--text-primary); font-family: inherit; font-size: 13px; outline: none; }

/* File Drop Zone */
.file-drop-zone { display: flex; flex-direction: column; align-items: center; padding: 48px; border: 2px dashed var(--border-color); border-radius: var(--radius-lg); text-align: center; cursor: pointer; }
.file-drop-zone:hover { border-color: var(--accent-primary); background: rgba(99, 102, 241, 0.05); }
.file-drop-zone svg { width: 48px; height: 48px; color: var(--text-muted); margin-bottom: 16px; }
.file-drop-zone p { font-size: 15px; color: var(--text-secondary); margin-bottom: 8px; }
.file-drop-zone span { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }

/* Form Elements */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }
.form-select, .form-input { width: 100%; padding: 10px 14px; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: var(--radius-md); color: var(--text-primary); font-size: 13px; outline: none; }
.form-select:focus, .form-input:focus { border-color: var(--accent-primary); }
.input-with-button { display: flex; gap: 8px; }
.input-with-button input { flex: 1; padding: 10px 14px; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: var(--radius-md); color: var(--text-primary); font-size: 13px; }
.search-input { padding: 8px 14px; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: var(--radius-md); color: var(--text-primary); font-size: 13px; width: 200px; outline: none; }

/* Toggle */
.toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.toggle input { display: none; }
.toggle-slider { width: 44px; height: 24px; background: var(--bg-tertiary); border-radius: 12px; position: relative; }
.toggle-slider::after { content: ''; position: absolute; width: 18px; height: 18px; background: var(--text-muted); border-radius: 50%; top: 3px; left: 3px; transition: all var(--transition-fast); }
.toggle input:checked + .toggle-slider { background: var(--accent-primary); }
.toggle input:checked + .toggle-slider::after { background: white; transform: translateX(20px); }
.toggle-label { font-size: 13px; color: var(--text-secondary); }

/* Alerts */
.alert { display: flex; gap: 12px; padding: 16px; border-radius: var(--radius-md); margin-bottom: 20px; }
.alert svg { width: 24px; height: 24px; flex-shrink: 0; }
.alert strong { display: block; margin-bottom: 4px; }
.alert p { font-size: 13px; color: var(--text-secondary); }
.alert-warning { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.3); }
.alert-warning svg { color: var(--warning); }
.alert-danger { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); }
.alert-danger svg { color: var(--danger); }

/* App List & Security */
.app-list, .partition-list { max-height: 500px; overflow-y: auto; }
.app-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border-color); }
.app-info { display: flex; align-items: center; gap: 12px; }
.app-icon { width: 40px; height: 40px; background: var(--bg-tertiary); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.security-checks { display: flex; flex-direction: column; gap: 8px; }
.check-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--bg-tertiary); border-radius: var(--radius-sm); }
.check-value { margin-left: auto; font-size: 12px; color: var(--text-secondary); }

/* Log */
.log-container { max-height: 500px; overflow-y: auto; font-family: 'Consolas', monospace; font-size: 12px; }
.log-entry { display: flex; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--border-color); }
.log-time { color: var(--text-muted); }
.log-level { width: 50px; font-weight: 500; }
.log-entry.info .log-level { color: var(--info); }
.log-entry.error .log-level { color: var(--danger); }
.log-message { color: var(--text-secondary); }

/* Toast */
.toast-container { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 12px; z-index: 9999; }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); box-shadow: var(--shadow-md); animation: slideIn 0.3s ease; backdrop-filter: blur(20px); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
.toast svg { width: 20px; height: 20px; }
.toast.success svg { color: var(--success); }
.toast.error svg { color: var(--danger); }

/* Modal */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 9998; }
.modal-overlay.active { display: flex; }
.modal { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-lg); width: 90%; max-width: 500px; animation: modalIn 0.3s ease; }
@keyframes modalIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border-color); }
.modal-body { padding: 20px; max-height: 60vh; overflow-y: auto; }
.modal-footer { padding: 16px 20px; border-top: 1px solid var(--border-color); display: flex; justify-content: flex-end; gap: 12px; }

/* Progress */
.progress-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.8); display: none; align-items: center; justify-content: center; z-index: 9999; }
.progress-overlay.active { display: flex; }
.progress-modal { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 40px; text-align: center; min-width: 300px; }
.progress-spinner { width: 48px; height: 48px; border: 3px solid var(--border-color); border-top-color: var(--accent-primary); border-radius: 50%; margin: 0 auto 20px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress-bar-container { width: 100%; height: 4px; background: var(--bg-tertiary); border-radius: 2px; margin-top: 16px; }
.progress-bar { height: 100%; background: var(--accent-gradient); width: 0%; transition: width 0.3s ease; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* New Feature Styles */
.warning-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 16px 0;
    color: var(--warning);
}

.info-box {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 16px 0;
    color: var(--info);
}

.success-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 16px 0;
    color: var(--success);
}

.danger-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 16px 0;
    color: var(--danger);
}

.device-info-box {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
}

.account-protection-box {
    background: rgba(16, 185, 129, 0.05);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 16px 0;
}

.checks-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.check-item.check-pass { border-color: rgba(16, 185, 129, 0.3); }
.check-item.check-warning { border-color: rgba(245, 158, 11, 0.3); }
.check-item.check-error { border-color: rgba(239, 68, 68, 0.3); }
.check-item.check-info { border-color: rgba(59, 130, 246, 0.3); }

.check-icon {
    font-size: 20px;
    min-width: 24px;
}

.check-text {
    flex: 1;
    color: var(--text-primary);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.installed {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.status-badge.not-installed {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.driver-list, .firmware-sources, .diagnostics-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

.driver-item, .source-item, .diagnostic-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.driver-info, .source-info, .diagnostic-header {
    flex: 1;
}

.version {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: 8px;
}

.diagnostic-item.status-success { border-left: 3px solid var(--success); }
.diagnostic-item.status-warning { border-left: 3px solid var(--warning); }
.diagnostic-item.status-error { border-left: 3px solid var(--danger); }
.diagnostic-item.status-info { border-left: 3px solid var(--info); }

.diagnostics-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.summary-item {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
}

.summary-item.success { border-color: rgba(16, 185, 129, 0.3); }
.summary-item.error { border-color: rgba(239, 68, 68, 0.3); }
.summary-item.warning { border-color: rgba(245, 158, 11, 0.3); }

.summary-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.summary-value {
    display: block;
    font-size: 24px;
    font-weight: 600;
}

.backup-options, .remember-choice {
    margin: 16px 0;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-group label {
    display: flex;
    align-items: center;
    padding: 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.option-group label:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
}

.option-group input[type="radio"] {
    margin-right: 12px;
}

.accounts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 16px 0;
}

.account-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.account-icon {
    font-size: 24px;
}

.account-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.account-type {
    font-size: 12px;
    color: var(--text-muted);
}

.firmware-info-box, .actions-box {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 16px 0;
}

.compatibility-status {
    padding: 20px;
    margin: 16px 0;
    border-radius: var(--radius-lg);
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

.compatibility-status.compatible {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.compatibility-status.incompatible {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.checks-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 16px 0;
}

.recommendations-section, .warnings-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.recommendation-item {
    padding: 16px;
    margin-bottom: 12px;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--info);
}

.recommendation-item.priority-high {
    border-left-color: var(--danger);
    background: rgba(239, 68, 68, 0.05);
}

.recommendation-item.priority-medium {
    border-left-color: var(--warning);
    background: rgba(245, 158, 11, 0.05);
}

.recommendation-item.priority-low {
    border-left-color: var(--info);
    background: rgba(59, 130, 246, 0.05);
}

.action {
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.warning-item {
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--warning);
    background: rgba(245, 158, 11, 0.1);
}

.warning-item.severity-error {
    border-left-color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.setting-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.setting-section:last-child {
    border-bottom: none;
}

.setting-item {
    margin-bottom: 16px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}
