/* Theme variable tokens */
:root {
    /* Color Palette */
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-surface-elevated: #f1f5f9;
    --color-text: #0f172a;
    --color-text-muted: #475569;
    --color-border: #e2e8f0;
    --color-primary: #4f46e5;
    --color-primary-hover: #4338ca;
    --color-primary-rgb: 79, 70, 229;
    --color-success: #10b981;
    --color-success-bg: #ecfdf5;
    --color-danger: #ef4444;
    --color-danger-bg: #fef2f2;
    --color-warning: #f59e0b;
    --color-warning-bg: #fffbeb;

    /* Header & Footer (Dark in both themes) */
    --color-header-bg: #1e1b4b;
    --color-header-text: #f9fafb;
    --color-header-text-muted: #c7d2fe;
    --color-header-border: #312e81;

    --color-footer-bg: #090d16;
    --color-footer-text: #f9fafb;
    --color-footer-text-muted: #9ca3af;
    --color-footer-border: #1f2937;
    --drop-zone-bg-1: #ffffff;
    --drop-zone-bg-2: #fafbff;
    --drop-zone-bg-3: #f3f4ff;

    --drop-zone-drag-bg-1: #ffffff;
    --drop-zone-drag-bg-2: #f7f5ff;
    --drop-zone-drag-bg-3: #eef2ff;

    --drop-zone-shadow: rgba(15, 23, 42, 0.06);
    --drop-zone-hover-shadow: rgba(15, 23, 42, 0.09);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

    /* Border Radii */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Typography settings */
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Layout metrics */
    --header-height: 72px;
    --max-width: 1200px;
    --max-width-narrow: 768px;

    color-scheme: light;
}

/* Dark Theme values */
[data-theme="dark"] {
    --color-bg: #090d16;
    --color-surface: #111827;
    --color-surface-elevated: #1f2937;
    --color-text: #f9fafb;
    --color-text-muted: #cbd5e1;
    --color-border: #374151;
    --color-primary: #6366f1;
    --color-primary-hover: #4f46e5;
    --color-primary-rgb: 99, 102, 241;
    --color-success: #34d399;
    --color-success-bg: rgba(6, 78, 59, 0.5);
    --color-danger: #f87171;
    --color-danger-bg: rgba(127, 29, 29, 0.5);
    --color-warning: #fbbf24;
    --color-warning-bg: rgba(120, 81, 6, 0.5);

    /* Header & Footer (Dark in both themes) */
    --color-header-bg: #0f0e2d;
    --color-header-text: #f9fafb;
    --color-header-text-muted: #a5b4fc;
    --color-header-border: #1d1b54;

    --color-footer-bg: #070a10;
    --color-footer-text: #f9fafb;
    --color-footer-text-muted: #9ca3af;
    --color-footer-border: #131b2e;
    --drop-zone-bg-1: #171923;
    --drop-zone-bg-2: #1b1d2b;
    --drop-zone-bg-3: #202235;

    --drop-zone-drag-bg-1: #191b29;
    --drop-zone-drag-bg-2: #22203a;
    --drop-zone-drag-bg-3: #29264a;

    --drop-zone-shadow: rgba(0, 0, 0, 0.22);
    --drop-zone-hover-shadow: rgba(0, 0, 0, 0.30);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);

    color-scheme: dark;
}

/* Hindi (Devanagari) specific typography override */
.lang-hi,
.lang-hi body {
    --font-heading: 'Mukta', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Mukta', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}