/* ============================================
   COSMIC DASHBOARD - Modern Dark Theme
   ============================================ */

:root {
    /* Backgrounds - Deep Space */
    --bg-void: #0a0a0f;
    --bg-surface: rgba(15, 15, 25, 0.8);
    --bg-elevated: rgba(25, 25, 40, 0.9);
    --bg-hover: rgba(40, 40, 60, 0.6);
    --bg-card: rgba(20, 20, 35, 0.7);

    /* Accent - Electric Purple */
    --accent: #8b5cf6;
    --accent-secondary: #6366f1;
    --accent-dim: #7c4dff;
    --accent-glow: rgba(139, 92, 246, 0.3);
    --accent-subtle: rgba(139, 92, 246, 0.1);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    --gradient-card: linear-gradient(145deg, rgba(30, 30, 50, 0.9) 0%, rgba(20, 20, 35, 0.8) 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.15) 0%, transparent 70%);

    /* Text Hierarchy */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --text-muted: #475569;

    /* Borders - Glass effect */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-visible: rgba(255, 255, 255, 0.15);
    --border-accent: var(--accent);
    --border-glow: rgba(139, 92, 246, 0.3);

    /* Spacing - Compact */
    --space-xs: 4px;
    --space-sm: 6px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 24px;
    --space-2xl: 40px;

    /* Radius - Refined */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-app-icon: 20%;

    /* App Icon Sizing - Ultra Compact */
    --app-icon-size: 36px;
    --app-icon-size-lg: 44px;

    /* Typography */
    --font-sans: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Geist Mono', 'JetBrains Mono', 'SF Mono', monospace;

    /* Transitions - Fast & Purposeful */
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
    --transition-fast: 150ms var(--ease-out);
    --transition-normal: 200ms var(--ease-out);

    /* Shadows - Soft depth */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.2);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-void);
    color: var(--text-primary);
    line-height: 1.5;
    height: 100vh;
    overflow: hidden;
    letter-spacing: -0.01em;
}

/* Form Elements */
input, button, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    background: transparent;
    outline: none;
}

button {
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Selection */
::selection {
    background: var(--accent);
    color: var(--bg-void);
}

/* Scrollbar - Invisible */
::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* Focus - Mint ring */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Utilities */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}
