/* ========== PocketLedger Premium Themes ========== */

/* Default Premium Dark Theme (Deep Navy/Charcoal) */
:root {
    --bg-primary: #020617;
    /* Deepest Navy */
    --bg-secondary: #0f172a;
    /* Slate 900 */
    --bg-tertiary: #1e293b;
    /* Slate 800 */
    --bg-card: rgba(15, 23, 42, 0.7);
    /* Translucent Slate 900 */
    --bg-glass: rgba(255, 255, 255, 0.03);

    --text-primary: #f8fafc;
    /* Slate 50 */
    --text-secondary: #94a3b8;
    /* Slate 400 */
    --text-muted: #64748b;
    /* Slate 500 */

    --accent-primary: #6366f1;
    /* Indigo 500 */
    --accent-secondary: #8b5cf6;
    /* Violet 500 */
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);

    --income-color: #22c55e;
    /* Green 500 */
    --income-bg: rgba(34, 197, 94, 0.1);
    --expense-color: #ef4444;
    /* Red 500 */
    --expense-bg: rgba(239, 68, 68, 0.1);
    --warning-color: #f59e0b;
    /* Amber 500 */

    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-color: rgba(0, 0, 0, 0.4);

    --radius-lg: 16px;
    --radius-md: 12px;
}

/* Midnight Blue Theme */
[data-theme="midnight-blue"] {
    --bg-primary: #0a0a1a;
    --bg-secondary: #11112b;
    --bg-tertiary: #1a1a3a;
    --bg-card: rgba(17, 17, 43, 0.8);
    --accent-primary: #3b82f6;
    --accent-secondary: #6366f1;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    --border-color: rgba(59, 130, 246, 0.2);
}

/* Emerald Green Theme */
[data-theme="emerald-green"] {
    --bg-primary: #061612;
    --bg-secondary: #0a221a;
    --bg-tertiary: #0f3025;
    --bg-card: rgba(10, 34, 26, 0.8);
    --accent-primary: #10b981;
    --accent-secondary: #059669;
    --accent-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --border-color: rgba(16, 185, 129, 0.2);
}

/* Classic Light Theme */
/* Light (Default) Theme - Premium Soft Look */
[data-theme="light"],
:root:not([data-theme]) {
    --bg-primary: #f8fafc;
    /* Slate 50 */
    --bg-secondary: #ffffff;
    /* White */
    --bg-tertiary: #f1f5f9;
    /* Slate 100 */
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-glass: rgba(0, 0, 0, 0.03);

    --text-primary: #0f172a;
    /* Slate 900 */
    --text-secondary: #475569;
    /* Slate 600 */
    --text-muted: #94a3b8;
    /* Slate 400 */

    --accent-primary: #6366f1;
    /* Indigo 500 */
    --accent-secondary: #8b5cf6;
    /* Violet 500 */
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);

    --income-color: #16a34a;
    /* Green 600 */
    --income-bg: rgba(22, 163, 74, 0.1);
    --expense-color: #dc2626;
    /* Red 600 */
    --expense-bg: rgba(220, 38, 38, 0.1);
    --warning-color: #d97706;
    /* Amber 600 */

    --border-color: #e2e8f0;
    /* Slate 200 */
    --shadow-color: rgba(148, 163, 184, 0.15);

    --radius-lg: 16px;
    --radius-md: 12px;
}

/* Override Classic Light to match new structure if needed, or keep as legacy */
[data-theme="classic-light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #e2e8f0;
    --bg-card: #ffffff;
    --border-color: #cbd5e1;
}

/* Light Theme Specific Overrides */
[data-theme="light"] .glass-card,
[data-theme="light"] .section-card,
:root:not([data-theme]) .glass-card,
:root:not([data-theme]) .section-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .app-header,
:root:not([data-theme]) .app-header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] .bottom-nav,
:root:not([data-theme]) .bottom-nav {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
:root:not([data-theme]) .form-group input,
:root:not([data-theme]) .form-group select {
    background: #ffffff;
    color: var(--text-primary);
    border-color: #cbd5e1;
}

[data-theme="light"] .tab-nav,
:root:not([data-theme]) .tab-nav {
    background: #f1f5f9;
}