/* Portfolio Analytics - CSS Variables & Reset */

:root {
    /* Colors */
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --bg-card: #16213e;
    --bg-card-hover: #1f2f52;

    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --accent-blue: #6366f1;
    --accent-blue-light: #818cf8;
    --accent-green: #22c55e;
    --accent-green-light: #4ade80;
    --accent-red: #ef4444;
    --accent-red-light: #f87171;
    --danger: #ef4444;
    --accent-purple: #a855f7;
    --accent-orange: #f97316;
    --accent-yellow: #eab308;

    --border-color: #27274a;
    --border-color-light: #3f3f6f;

    /* Typography */
    --font-display: 'Fira Sans', system-ui, sans-serif;
    --font-mono: 'Fira Code', 'Consolas', monospace;

    /* Spacing */
    --container-width: 1400px;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Extended variables */
    --bg-tertiary: rgba(0, 0, 0, 0.2);
    --bg-hover: rgba(255, 255, 255, 0.05);
    --accent-cyan: #06b6d4;
    --border: var(--border-color);
    --border-primary: var(--border-color);

    /* Responsive header height tracking */
    --header-height: 65px;
    --tabs-height: 45px;
    --sticky-card-top: calc(var(--header-height) + var(--tabs-height));
    /* Card-header height — also used as min-height to keep all card-headers
       uniform so the sticky thead position is consistent across all cards.
       Tall enough to fit search box + buttons in the breakdown card. */
    --card-header-h: 70px;
    --sticky-thead-top: calc(var(--sticky-card-top) + var(--card-header-h));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-display);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}
