/* ═══════════════════════════════════════════════════════════════
   PREGAME DASHBOARD — Base Styles & Design Tokens
   ═══════════════════════════════════════════════════════════════ */

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

:root {
    --bg: #0a0a0f;
    --surface: #12121a;
    --surface-2: #1a1a26;
    --surface-3: #222233;
    --border: #2a2a3a;
    --border-hover: #3a3a4a;
    --text: #e8e8f0;
    --text-muted: #8888a0;
    --text-dim: #555570;
    --accent: #ff6b35;
    --accent-hover: #ff8555;
    --accent-glow: rgba(255, 107, 53, 0.15);
    --green: #34d399;
    --green-glow: rgba(52, 211, 153, 0.1);
    --red: #ef4444;
    --yellow: #fbbf24;

    /* Layout metrics */
    --mobile-header-height: 60px;
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 72px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.space {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
}

.hidden {
    display: none !important;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

/* Base Navigation (Standalone Pages) */
nav:not(.sidebar-nav) {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(10, 10, 15, 0.85);
    border-bottom: 1px solid var(--border);
}

.nav-left { display: flex; align-items: center; gap: 24px; }

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.5px;
    text-decoration: none;
}

/* Layout Containers */
.app-shell-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
    background: var(--bg);
}

.app-main-view {
    flex: 1;
    min-width: 0;
    padding: 32px 36px 60px;
    background: var(--bg);
    overflow-x: hidden;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Grid System */
.app-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 16px;
}

/* Animations */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}
