/* ===== BASE CSS ===== */
/* Reset, Variables, Typography */

:root {
    --bg: #000000;
    --bg-gradient: radial-gradient(circle at 50% 0%, #1a1a1a 0%, #000000 100%);
    --bg-elevated: rgba(28, 28, 30, 0.6);
    --bg-overlay: rgba(0, 0, 0, 0.8);
    --surface: rgba(44, 44, 46, 0.5);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --accent: #0a84ff;
    --accent-rgb: 10, 132, 255;
    --accent-hover: #007aff;
    --accent-gradient: linear-gradient(135deg, #0a84ff, #007aff);
    --accent-glow: 0 0 20px rgba(10, 132, 255, 0.3);
    --success: #32d74b;
    --danger: #ff453a;
    --error: #ff453a;
    --warning: #ff9f0a;
    --text: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-tertiary: rgba(255, 255, 255, 0.35);
    --border: rgba(255, 255, 255, 0.1);
    --radius: 20px;
    --radius-sm: 14px;
}

[data-theme="light"] {
    --bg: #f2f2f7;
    --bg-gradient: radial-gradient(circle at 50% 0%, #ffffff 0%, #f2f2f7 100%);
    --bg-elevated: rgba(255, 255, 255, 0.65);
    --bg-overlay: rgba(255, 255, 255, 0.8);
    --surface: rgba(242, 242, 247, 0.5);
    --glass-border: 1px solid rgba(0, 0, 0, 0.05);
    --text: #000000;
    --text-secondary: rgba(0, 0, 0, 0.6);
    --text-tertiary: rgba(0, 0, 0, 0.35);
    --border: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    background-image: var(--bg-gradient);
    color: var(--text);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* Glassmorphism Classes */
.glass {
    background: var(--bg-elevated);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* App Container */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: 90px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

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

audio {
    display: none;
}

/* Keyframe Animations */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@keyframes ring {
    0% {
        box-shadow: 0 0 0 0 var(--accent-glow);
    }

    100% {
        box-shadow: 0 0 0 30px transparent;
    }
}

@keyframes ring-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

@keyframes voice-ring {
    0% {
        transform: scale(0.9);
        opacity: 1;
    }

    100% {
        transform: scale(1.1);
        opacity: 0;
    }
}

@keyframes pop-in {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}