/* === ROOT VARIABLES === */
:root {
    --color-primary: #2C3E7A;
    --color-primary-dark: #1a2545;
    --color-primary-light: #3d5299;
    --color-accent-orange: #FF8C42;
    --color-accent-green: #7FD957;
    --color-danger: #E74C3C;
    --color-text-light: #E8EEF5;
    --color-text-muted: rgba(232, 238, 245, 0.7);
    --gradient-bg: linear-gradient(135deg, #1a2545 0%, #2C3E7A 50%, #3d5299 100%);
    --glass-bg: rgba(44, 62, 122, 0.15);
    --glass-border: rgba(232, 238, 245, 0.2);

    /* Viewport heights for mobile keyboard handling */
    --vh: 1vh;
    --dvh: 1dvh;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--gradient-bg);
    height: 100vh;
    overflow: hidden;
    color: var(--color-text-light);
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    position: relative;
}

/* === ANIMATED NEURAL NETWORK BACKGROUND === */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 140, 66, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(127, 217, 87, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(232, 238, 245, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: backgroundPulse 15s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-radial-gradient(circle at 0% 0%, transparent 0%, transparent 40px, rgba(232, 238, 245, 0.03) 40px, rgba(232, 238, 245, 0.03) 41px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulseNotification {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 140, 66, 0.8);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 140, 66, 1);
    }
}

/* === UTILITY CLASSES === */
.hidden {
    display: none !important;
}
