/* ━━━ ANTIGRAVITY V4 THEME ━━━ */
:root {
    --bg-primary: #000000; /* Absolute Black */
    --bg-surface: #04080f;
    --bg-card: #06090f;
    --accent-cyan: #00D4FF;
    --accent-violet: #6C63FF;
    --accent-red: #FF2D55;
    --text-primary: #E2E8F0;
    --text-secondary: #94A3B8;
    --text-muted: #475569;
    --border-glow: rgba(0, 212, 255, 0.3);
    --transition-speed: 300ms;
}

/* Global Reset & Base */
.stApp {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    font-family: 'Inter', sans-serif !important;
}

/* Typography */
h1, h2, h3, .section-header {
    font-weight: 600 !important;
    letter-spacing: -0.02em !important;
    color: var(--text-primary) !important;
}

.monospace, [data-testid="stMetricValue"], .kpi-val {
    font-family: 'JetBrains Mono', 'Courier New', monospace !important;
    font-variant-numeric: tabular-nums !important;
}

/* Sticky Navbar Styles */
.cyber-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-left { display: flex; align-items: center; gap: 1rem; }
.nav-logo { font-size: 1.1rem; font-weight: 800; color: var(--accent-cyan); letter-spacing: 2px; }

.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.status-indicator { display: flex; align-items: center; gap: 0.5rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: #10b981; }
.pulse-dot { width: 7px; height: 7px; background: #10b981; border-radius: 50%; box-shadow: 0 0 12px #10b981; animation: pulse 2s infinite; }

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 20px #10b981; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

/* Antigravity Metric Boxes (Reference Style) */
.cyber-card {
    background: rgba(0, 212, 255, 0.02);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 6px;
    padding: 1rem;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cyber-card:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.05);
    box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.05);
}

.kpi-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.kpi-title { 
    font-size: 0.65rem; 
    color: var(--text-secondary); 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    font-weight: 700; 
    margin-bottom: 5px;
}

.kpi-val { 
    font-size: 1.8rem; 
    font-weight: 800; 
    color: var(--accent-cyan); 
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

/* Chart Wrappers */
.chart-container {
    background: #000000;
    border: 1px solid rgba(255,255,255,0.05);
    border-top: 2px solid var(--accent-cyan);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 24px;
}

.live-badge {
    background: rgba(255, 45, 85, 0.1);
    border: 1px solid rgba(255, 45, 85, 0.2);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--accent-red);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 1px;
}

/* Sidebar Customization */
[data-testid="stSidebar"] {
    background: #000000 !important;
    border-right: 1px solid rgba(255,255,255,0.05) !important;
}

/* Animations */
.fade-in { animation: fadeInUp 0.6s ease forwards; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scan line */
.scan-line::after {
    animation-duration: 6s;
    background: linear-gradient(to bottom, transparent, rgba(0, 212, 255, 0.03) 50%, transparent);
}
