/* =============================================================
   AILOCA Cloud App — Mobile-first CSS
   ============================================================= */

:root {
    --app-primary: #667eea;
    --app-primary-dark: #5a6fd6;
    --app-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --app-bg: #f5f7fb;
    --app-surface: #ffffff;
    --app-text: #1a1a2e;
    --app-text-muted: #6b7280;
    --app-border: #e5e7eb;
    --app-success: #10b981;
    --app-warning: #f59e0b;
    --app-error: #ef4444;
    --app-radius: 12px;
    --app-header-h: 56px;
    --app-nav-h: 64px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ─── Dark Theme ─── */
[data-theme="dark"] {
    --app-primary: #7b93ff;
    --app-primary-dark: #667eea;
    --app-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --app-bg: #0d0d0d;
    --app-surface: #1a1a1a;
    --app-text: #ffffff;
    --app-text-muted: #a0a0a0;
    --app-border: #2a2a2a;
    --app-success: #34d399;
    --app-warning: #fbbf24;
    --app-error: #f87171;
}

/* Smooth transitions */
body, .app-header, .app-main, .app-bottom-nav,
.app-card, .settings-card, .topup-sheet-box,
.result-header, .result-tabs, .app-input {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

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

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--app-bg);
    color: var(--app-text);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior: none;
}

/* ─── Header ─── */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--app-header-h);
    background: var(--app-surface);
    border-bottom: 1px solid var(--app-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
}

.app-header-left { display: flex; align-items: center; }

.app-logo {
    color: var(--app-text);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.app-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-balance {
    font-size: 13px;
    font-weight: 600;
    color: var(--app-text-muted);
    background: var(--app-bg);
    padding: 4px 10px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s;
    font-family: inherit;
}
.app-balance:active {
    background: var(--app-border);
}

/* ─── Topup Bottom Sheet ─── */
.topup-sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: topupFadeIn 0.15s;
}
@keyframes topupFadeIn { from { opacity: 0; } to { opacity: 1; } }
.topup-sheet-box {
    background: var(--app-surface, #fff);
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 480px;
    padding: 8px 0 calc(16px + var(--safe-bottom));
    animation: topupSlideUp 0.2s ease;
}
@keyframes topupSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.topup-sheet-handle {
    width: 36px;
    height: 4px;
    background: var(--app-border);
    border-radius: 2px;
    margin: 4px auto 12px;
}
.topup-sheet-title {
    padding: 0 20px 4px;
    font-size: 17px;
    font-weight: 600;
    color: var(--app-text);
}
.topup-sheet-balance {
    padding: 0 20px 16px;
    font-size: 13px;
    color: var(--app-text-muted);
}
.topup-presets {
    display: flex;
    gap: 8px;
    padding: 0 20px 12px;
    flex-wrap: wrap;
}
.topup-preset {
    padding: 8px 14px;
    border: 1.5px solid var(--app-border);
    border-radius: 10px;
    background: var(--app-surface);
    color: var(--app-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
    font-family: inherit;
}
.topup-preset:active,
.topup-preset.selected {
    border-color: var(--app-primary);
    color: var(--app-primary);
    background: rgba(102, 126, 234, 0.06);
}
.topup-input-row {
    padding: 0 20px 16px;
}
.topup-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--app-border);
    border-radius: 10px;
    background: var(--app-bg);
    color: var(--app-text);
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}
.topup-input:focus { border-color: var(--app-primary); }
.topup-pay-btn {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: var(--app-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
    -webkit-tap-highlight-color: transparent;
    font-family: inherit;
}
.topup-pay-btn:active { opacity: 0.85; }
.topup-pay-btn:disabled { opacity: 0.5; cursor: default; }
.topup-error {
    padding: 0 20px;
    margin-top: 8px;
    font-size: 13px;
    color: var(--app-error);
    display: none;
}

/* ─── Payment Toast ─── */
.app-payment-toast {
    position: fixed;
    top: calc(var(--app-header-h) + 8px);
    left: 12px;
    right: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    z-index: 250;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
}
.app-payment-toast.show { transform: translateY(0); }
.app-payment-toast.pending { background: #fef3c7; color: #92400e; }
.app-payment-toast.success { background: #ecfdf5; color: #065f46; }
.app-payment-toast.error { background: #fef2f2; color: #991b1b; }

.app-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--app-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.app-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--text-secondary, #8E8E93);
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.app-logout-btn:active {
    background: rgba(255, 59, 48, 0.1);
    color: #FF3B30;
}

/* ─── Main Content ─── */
.app-main {
    padding-top: var(--app-header-h);
    padding-bottom: calc(var(--app-nav-h) + var(--safe-bottom) + 8px);
    min-height: 100vh;
}

/* ─── Bottom Navigation ─── */
.app-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--app-nav-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: var(--app-surface);
    border-top: 1px solid var(--app-border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 16px;
    text-decoration: none;
    color: var(--app-text-muted);
    font-size: 11px;
    font-weight: 500;
    transition: color 0.15s;
    -webkit-tap-highlight-color: transparent;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.nav-item.active {
    color: var(--app-primary);
}

.nav-item:active {
    transform: scale(0.95);
}

/* ─── Page Section ─── */
.app-section {
    padding: 16px;
}

.app-section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--app-text);
}

/* ─── Cards ─── */
.app-card {
    background: var(--app-surface);
    border-radius: var(--app-radius);
    border: 1px solid var(--app-border);
    padding: 16px;
    margin-bottom: 12px;
    transition: box-shadow 0.15s;
}

.app-card:active {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.app-card-clickable {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ─── Batch List Item ─── */
.batch-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.batch-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.batch-icon.completed { background: #ecfdf5; color: var(--app-success); }
.batch-icon.processing { background: #eff6ff; color: #3b82f6; }
.batch-icon.pending { background: #fefce8; color: var(--app-warning); }
.batch-icon.failed { background: #fef2f2; color: var(--app-error); }
.batch-icon.cancelled { background: #f3f4f6; color: #9ca3af; }

.batch-info { flex: 1; min-width: 0; }

.batch-name {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.batch-meta {
    font-size: 12px;
    color: var(--app-text-muted);
    margin-top: 2px;
}

.batch-status {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.batch-status.completed { background: #ecfdf5; color: #059669; }
.batch-status.processing { background: #eff6ff; color: #2563eb; }
.batch-status.pending { background: #fefce8; color: #d97706; }
.batch-status.failed { background: #fef2f2; color: #dc2626; }
.batch-status.cancelled { background: #f3f4f6; color: #6b7280; }

/* ─── Empty State ─── */
.app-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--app-text-muted);
}

.app-empty svg {
    margin-bottom: 16px;
    opacity: 0.4;
}

.app-empty-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--app-text);
}

.app-empty-text {
    font-size: 14px;
    margin-bottom: 20px;
}

/* ─── Buttons ─── */
.app-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.15s;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.app-btn:active { transform: scale(0.97); }
.app-btn:disabled { opacity: 0.5; pointer-events: none; }

.app-btn-primary {
    background: var(--app-gradient);
    color: white;
}

.app-btn-secondary {
    background: var(--app-bg);
    color: var(--app-text);
    border: 1px solid var(--app-border);
}

.app-btn-full { width: 100%; }

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

/* ─── Upload Zone ─── */
.upload-zone {
    border: 2px dashed var(--app-border);
    border-radius: var(--app-radius);
    padding: 32px 16px;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
}

.upload-zone.dragover {
    border-color: var(--app-primary);
    background: rgba(102, 126, 234, 0.05);
}

.upload-zone-icon {
    margin-bottom: 12px;
    color: var(--app-text-muted);
}

.upload-zone-text {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
}

.upload-zone-hint {
    font-size: 13px;
    color: var(--app-text-muted);
}

/* ─── File List ─── */
.file-list {
    margin-top: 16px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--app-border);
}

.file-item:last-child { border-bottom: none; }

.file-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #eff6ff;
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-info { flex: 1; min-width: 0; }

.file-name {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.file-remove {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: none;
    border: none;
    color: var(--app-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-remove:hover { background: #fef2f2; color: var(--app-error); }

/* ─── Progress ─── */
.upload-progress {
    margin-top: 16px;
    display: none;
}

.upload-progress.visible { display: block; }

.progress-bar-outer {
    width: 100%;
    height: 6px;
    background: var(--app-border);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-inner {
    height: 100%;
    background: var(--app-gradient);
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 13px;
    color: var(--app-text-muted);
    margin-top: 6px;
    text-align: center;
}

/* ─── Result Page ─── */
.result-header {
    padding: 16px;
    background: var(--app-surface);
    border-bottom: 1px solid var(--app-border);
}

.result-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.result-title {
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.result-date {
    font-size: 11px;
    color: var(--app-text-muted);
    white-space: nowrap;
    margin-left: auto;
    flex-shrink: 0;
}

.app-btn-icon {
    width: 32px; height: 32px;
    border: 1px solid var(--app-border);
    background: var(--app-surface);
    color: var(--app-primary);
    cursor: pointer;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
}
.app-btn-icon:hover { background: var(--app-bg); }
.app-btn-icon:active { background: var(--app-border); }

.result-tabs {
    display: flex;
    gap: 0;
    background: var(--app-surface);
    border-bottom: 1px solid var(--app-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.result-tab {
    flex: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--app-text-muted);
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.result-tab.active {
    color: var(--app-primary);
    border-bottom-color: var(--app-primary);
}

.result-panel { display: none; }
.result-panel.active { display: block; }

/* Transcript */
.transcript-line {
    padding: 10px 16px;
    border-bottom: 1px solid var(--app-border);
}

.transcript-speaker {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 2px;
}

.transcript-speaker.manager { color: #2563eb; }
.transcript-speaker.client { color: #059669; }

.transcript-text {
    font-size: 14px;
    line-height: 1.5;
}

/* Analysis scores */
.score-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--app-border);
}

.score-label {
    font-size: 14px;
    flex: 1;
}

.score-value {
    font-size: 16px;
    font-weight: 700;
    min-width: 40px;
    text-align: right;
}

.score-value.good { color: var(--app-success); }
.score-value.medium { color: var(--app-warning); }
.score-value.bad { color: var(--app-error); }

/* ─── Settings ─── */
.settings-section {
    padding: 16px;
}

.settings-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--app-text-muted);
    margin-bottom: 8px;
    padding: 0 4px;
}

.settings-card {
    background: var(--app-surface);
    border-radius: var(--app-radius);
    border: 1px solid var(--app-border);
    overflow: hidden;
}

.settings-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--app-border);
    text-decoration: none;
    color: inherit;
}

.settings-row:last-child { border-bottom: none; }

.settings-row-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.settings-row-content { flex: 1; }

.settings-row-title {
    font-size: 15px;
    font-weight: 500;
}

.settings-row-subtitle {
    font-size: 12px;
    color: var(--app-text-muted);
    margin-top: 1px;
}

.settings-row-arrow {
    color: var(--app-text-muted);
    flex-shrink: 0;
}

.settings-row-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.settings-row-badge.connected { background: #ecfdf5; color: #059669; }
.settings-row-badge.not-connected { background: #f3f4f6; color: #6b7280; }

/* ─── Form Inputs ─── */
.app-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--app-border);
    border-radius: 10px;
    font-size: 15px;
    background: var(--app-surface);
    color: var(--app-text);
    transition: border-color 0.15s;
}

.app-input:focus {
    outline: none;
    border-color: var(--app-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.app-input-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--app-text);
    margin-bottom: 6px;
}

/* ─── Toast ─── */
.app-toast {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(-120%);
    max-width: 360px;
    width: calc(100% - 32px);
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    z-index: 200;
    transition: transform 0.3s ease;
    text-align: center;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.app-toast.visible { transform: translateX(-50%) translateY(0); }
.app-toast.success { background: #059669; color: white; }
.app-toast.error { background: #dc2626; color: white; }
.app-toast.info { background: #2563eb; color: white; }

/* ─── Spinner ─── */
.app-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--app-border);
    border-top-color: var(--app-primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.app-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px 16px;
    color: var(--app-text-muted);
    font-size: 14px;
}

/* ─── Back Link ─── */
.app-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--app-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 0;
}

/* ─── Responsive: tablet+ ─── */
@media (min-width: 640px) {
    .app-main {
        max-width: 640px;
        margin: 0 auto;
    }

    .app-bottom-nav {
        max-width: 640px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    }
}

/* ─── Chat Overlay ─── */
.app-chat-overlay {
    position: fixed;
    top: var(--app-header-h);
    left: 0;
    right: 0;
    bottom: calc(var(--app-nav-h) + var(--safe-bottom));
    background: var(--app-bg);
    z-index: 90;
    display: none;
    flex-direction: column;
    overflow: hidden;
    padding: 0 16px;
}

.app-chat-overlay.open {
    display: flex;
}

.app-chat-overlay #app-chat-root {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.app-chat-overlay .smart-chat-container {
    flex: 1;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
}

@media (min-width: 640px) {
    .app-chat-overlay {
        max-width: 640px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ─── Pull-to-refresh indicator (optional) ─── */
.ptr-indicator {
    text-align: center;
    padding: 8px;
    color: var(--app-text-muted);
    font-size: 12px;
    display: none;
}

/* ─── Dark Theme Overrides (hardcoded colors) ─── */
[data-theme="dark"] .batch-icon.completed { background: rgba(16, 185, 129, 0.15); }
[data-theme="dark"] .batch-icon.processing { background: rgba(59, 130, 246, 0.15); }
[data-theme="dark"] .batch-icon.pending { background: rgba(245, 158, 11, 0.15); }
[data-theme="dark"] .batch-icon.failed { background: rgba(239, 68, 68, 0.15); }
[data-theme="dark"] .batch-icon.cancelled { background: rgba(156, 163, 175, 0.15); }

[data-theme="dark"] .batch-status.completed { background: rgba(16, 185, 129, 0.15); color: #34d399; }
[data-theme="dark"] .batch-status.processing { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
[data-theme="dark"] .batch-status.pending { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
[data-theme="dark"] .batch-status.failed { background: rgba(239, 68, 68, 0.15); color: #f87171; }
[data-theme="dark"] .batch-status.cancelled { background: rgba(156, 163, 175, 0.15); color: #9ca3af; }

[data-theme="dark"] .file-icon { background: rgba(59, 130, 246, 0.15); }
[data-theme="dark"] .file-remove:hover { background: rgba(239, 68, 68, 0.15); }

[data-theme="dark"] .settings-row-badge.connected { background: rgba(16, 185, 129, 0.15); color: #34d399; }
[data-theme="dark"] .settings-row-badge.not-connected { background: rgba(156, 163, 175, 0.15); color: #9ca3af; }

[data-theme="dark"] .app-payment-toast.pending { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
[data-theme="dark"] .app-payment-toast.success { background: rgba(16, 185, 129, 0.2); color: #34d399; }
[data-theme="dark"] .app-payment-toast.error { background: rgba(239, 68, 68, 0.2); color: #f87171; }

[data-theme="dark"] .topup-preset:active,
[data-theme="dark"] .topup-preset.selected {
    background: rgba(102, 126, 234, 0.15);
}

[data-theme="dark"] .upload-zone.dragover {
    background: rgba(102, 126, 234, 0.1);
}

[data-theme="dark"] .app-card:active {
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

[data-theme="dark"] .transcript-speaker.manager { color: #60a5fa; }
[data-theme="dark"] .transcript-speaker.client { color: #34d399; }

/* ─── Theme Toggle (iOS-style) ─── */
.theme-toggle-switch {
    width: 51px;
    height: 31px;
    background: #e5e5ea;
    border-radius: 15.5px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
    border: none;
    padding: 0;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
.theme-toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 27px;
    height: 27px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.theme-toggle-switch.active {
    background: var(--app-primary, #667eea);
}
.theme-toggle-switch.active::after {
    transform: translateX(20px);
}
