@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --color-primary: #3b82f6;
    --color-accent: #d4f34a;
}

/* =========================================================
   DARK MODE TOKENS
   ========================================================= */
html.dark {
    --bg-base: #080a0f;
    --bg-surface: #0c0f17;
    --bg-surface-hover: #141824;
    --bg-card: #0c0f17;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    
    --border-main: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
}

/* =========================================================
   LIGHT MODE TOKENS
   ========================================================= */
html:not(.dark) {
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f1f5f9;
    --bg-card: #ffffff;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    
    --border-main: rgba(226, 232, 240, 0.8);
    --border-hover: rgba(203, 213, 225, 1);
}

/* =========================================================
   GLOBAL TYPOGRAPHY & RESET
   ========================================================= */
body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

/* Glass Surface Utilities */
.glass-card, .glass {
    background: var(--bg-surface);
    border: 1px solid var(--border-main);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.25);
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.45);
}

/* Global Tailwind Padding Fallbacks for Inputs with Icons */
.pl-8 { padding-left: 2rem !important; }
.pl-9 { padding-left: 2.25rem !important; }
.pl-10 { padding-left: 2.5rem !important; }
.pl-11 { padding-left: 2.75rem !important; }
.pl-12 { padding-left: 3rem !important; }
.pl-14 { padding-left: 3.5rem !important; }

/* Native Dialog / Modal Display Fixes */
dialog:not([open]) {
    display: none !important;
}

dialog[open] {
    display: block;
    margin: auto;
}

