:root {
    --bg-dark: #030d14;
    --bg-gradient: radial-gradient(circle at top center, #0a2135 0%, #030d14 100%);
    --neon-blue: #00d2ff;
    --neon-green: #00e676;
    --text-primary: #f0f8ff;
    --text-muted: #8ab4f8;
    --panel-bg: rgba(10, 33, 53, 0.4);
    --panel-border: rgba(138, 180, 248, 0.15);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background: var(--bg-gradient);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background effects */
body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(circle at 15% 50%, rgba(0, 210, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(0, 230, 118, 0.03) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.dashboard-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    max-width: 1600px;
    padding: 2rem;
    gap: 1.5rem;
}

/* Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 1rem;
}

.logo h1 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
}

.logo h1 span {
    color: var(--neon-blue);
}

.subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 0.2rem;
}

.global-status {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.3);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.optimal {
    color: var(--neon-green);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.5);
}

.pulsing-dot {
    width: 10px;
    height: 10px;
    background-color: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-green);
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.5; box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
    70% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 10px rgba(0, 230, 118, 0); }
    100% { transform: scale(0.8); opacity: 0.5; box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

/* Main Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 2rem;
    flex: 1;
    min-height: 0; /* for flex shrinking */
}

/* Panels */
.panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.glass-card {
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 210, 255, 0.15);
    border-color: rgba(0, 210, 255, 0.3);
}

.card-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.metric-container {
    margin-bottom: 1rem;
}

.metric {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}

.metric-unit {
    font-size: 1.2rem;
    color: var(--neon-blue);
    font-weight: 600;
}

.metric-label {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    opacity: 0.8;
}

.progress-bar-wrapper {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 2s cubic-bezier(0.22, 1, 0.36, 1);
}

.fill-green { background: var(--neon-green); box-shadow: 0 0 10px var(--neon-green); width: 0; }
.fill-blue { background: var(--neon-blue); box-shadow: 0 0 10px var(--neon-blue); width: 0; }

.detail-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 1rem;
    border-left: 2px solid var(--neon-green);
    padding-left: 1rem;
}

/* Center Map Container */
.center-panel {
    display: flex;
    flex-direction: column;
    position: relative;
    background: radial-gradient(circle at center, rgba(0, 210, 255, 0.05) 0%, transparent 60%);
    border-radius: 20px;
    border: 1px solid var(--panel-border);
    overflow: hidden;
}

.map-container {
    flex: 1;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#world-map svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 15px rgba(0, 210, 255, 0.2));
}

.country {
    fill: #0c3b5e;
    stroke: var(--bg-dark);
    stroke-width: 0.5;
    transition: fill 0.3s ease, filter 0.3s ease;
    cursor: crosshair;
}

.country:hover {
    fill: var(--neon-green);
    filter: drop-shadow(0 0 8px var(--neon-green));
    stroke-width: 1;
}

.graticule {
    fill: none;
    stroke: rgba(138, 180, 248, 0.1);
    stroke-width: 0.5px;
}

.sphere {
    fill: rgba(4, 26, 43, 0.6);
    stroke: rgba(0, 210, 255, 0.2);
    stroke-width: 1px;
}

/* Map Overlays */
.map-overlay {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    display: flex;
    gap: 2rem;
    pointer-events: none;
}

.overlay-stat {
    background: rgba(3, 13, 20, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 210, 255, 0.3);
    padding: 1rem 1.5rem;
    border-radius: 12px;
}

.overlay-stat h3 {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.stat-highlight {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.6);
}

/* Footer Ticker */
.dashboard-footer {
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--panel-border);
    border-bottom: 1px solid var(--panel-border);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.ticker {
    display: inline-flex;
    white-space: nowrap;
    animation: ticker 25s linear infinite;
}

.ticker__item {
    padding: 0 3rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-icon {
    width: 16px;
    height: 16px;
    color: var(--neon-blue);
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* Responsive (if needed) */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto 400px auto;
        overflow-y: auto;
    }
    body {
        height: auto;
        overflow: auto;
    }
    .dashboard-wrapper {
        min-height: 100vh;
    }
}
