/**
 * AquaTrack Design DNA v5.5 - Sovereign Soul
 * DNA: Electric HUD Borders, 3rem Soul, and Physical Haptics.
 * Pruned: Standard layout utilities (now handled by Tailwind).
 */

:root {
    /* --- 1. Core Palette --- */
    --bg-app: #f8fafc;
    --surface: rgba(255, 255, 255, 0.95);
    --glass: rgba(248, 250, 252, 0.6);
    --glass-heavy: rgba(255, 255, 255, 0.75);
    --accent: #0ea5e9;
    --accent-glow: rgba(14, 165, 233, 0.2);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: rgba(15, 23, 42, 0.08);

    /* --- 2. Geometric DNA (Master Preference) --- */
    --radius-3xl: 48px; /* 3rem signature curve */
    --radius-2xl: 32px;
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;

    /* --- 3. Interaction & Motion --- */
    --ease-kinetic: cubic-bezier(0.34, 1.56, 0.64, 1);
    --press-depth: scale(0.95);
    
    /* --- 4. Z-Stack --- */
    --z-neg: -1; --z-base: 0; --z-elevated: 10; --z-fixed: 100; --z-max: 1000;
}

[data-theme="dark"] {
    --bg-app: #020617;
    --surface: rgba(15, 23, 42, 0.95);
    --glass: rgba(30, 41, 59, 0.5);
    --glass-heavy: rgba(15, 23, 42, 0.8);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    /* Electric Blue Dark Border */
    --border: rgba(79, 172, 254, 0.35);
    --accent-glow: rgba(56, 189, 248, 0.25);
}

/* --- Base Reset & Physical Engine --- */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-app);
    color: var(--text-main);
    line-height: 1.4;
    min-height: 100vh;
    background-image: radial-gradient(circle at 100% 0%, var(--accent-glow), transparent 50%);
    overflow-x: hidden;
    transition: background 0.3s ease;
}

/* --- DNA SECTION 1: PHYSICAL COMPONENTS --- */
.haptic { transition: transform 0.15s var(--ease-kinetic); cursor: pointer; }
.haptic:active { transform: var(--press-depth); }

.glass-card {
    background: var(--surface); 
    border: 1px solid var(--border);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

/* Electric Glow for Dark HUD */
[data-theme="dark"] .glass-card {
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.08), 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.glass-blur { backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); }

.glass-well {
    background: var(--bg-app); 
    border: 1px solid var(--border);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s var(--ease-kinetic);
}

.glass-well:focus-within {
    background: var(--surface); 
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
    transform: scale(1.01); /* Kinetic pop */
}

/* --- DNA SECTION 2: ATHLETIC SVG ENGINE --- */
svg.icon {
    stroke-linecap: round; stroke-linejoin: round; fill: none;
    transition: all 0.3s var(--ease-kinetic);
}
.icon-accent { stroke: var(--accent); } 
.icon-white { stroke: #ffffff; }
.icon-bold { stroke-width: 3px; } 
.icon-extrabold { stroke-width: 4px; }
.icon-lg { width: 32px; height: 32px; } 
.icon-xl { width: 44px; height: 44px; }
.icon-glow { filter: drop-shadow(0 0 8px var(--accent-glow)); }
.icon-glow-lg { filter: drop-shadow(0 0 12px var(--accent)); }

/* --- DNA SECTION 3: REUSABLE BASES --- */
header {
    width: 100%; background: var(--glass-heavy);
    position: fixed; top: 0; left: 0; z-index: var(--z-fixed);
    border-bottom: 1px solid var(--border);
}

input {
    width: 100%; border: none; outline: none; background: transparent;
    font-size: 0.95rem; color: var(--text-main); font-family: inherit;
}

/* Custom Shape Alignment */
.rounded-48 { border-radius: 48px; }
.rounded-32 { border-radius: 32px; }
.rounded-22 { border-radius: 22px; }

/* Decorative Orbs */
.glass-orb { position: fixed; border-radius: 50%; filter: blur(90px); z-index: var(--z-neg); opacity: 0.5; pointer-events: none; }
.orb-1 { width: 400px; height: 400px; background: var(--accent-glow); top: -100px; right: -80px; }
.orb-2 { width: 350px; height: 350px; background: rgba(45, 212, 191, 0.2); bottom: -60px; left: -80px; }
