:root {
    --bg-lab: #0a0a0c;
    --sidebar-bg: #0f0f12;
    --header-bg: #141419;

    --accent-blue: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.4);

    --text-primary: #f0f0f0;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;

    --border: #27272a;
    --border-glow: #3f3f46;

    --card-bg: rgba(24, 24, 27, 0.7);
    --input-bg: #18181b;
}

body {
    background: var(--bg-lab) !important;
    color: var(--text-primary);
    overflow: hidden;
}

.solar-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.lab-nav {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    z-index: 100;
}

.solar-workspace {
    display: grid;
    grid-template-columns: 320px 1fr;
    flex-grow: 1;
    overflow: hidden;
}

/* Sidebar Styling */
.solar-sidebar {
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
    overflow-y: auto;
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-section.grow {
    flex-grow: 1;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 700;
}

.section-header i {
    font-size: 1.25rem;
    color: var(--accent-blue);
}

/* Vitals Grid */
.vitals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.v-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 0.75rem;
    border-radius: 10px;
}

.v-card span {
    font-size: 0.6rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.25rem;
}

.v-card strong {
    font-size: 1rem;
    color: #ef4444; /* Alert color */
}

/* Alerts List */
.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.alert-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.alert-item .type {
    font-weight: 700;
    font-size: 0.85rem;
}

.alert-item .loc {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.alert-item p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.alert-item.high { border-left: 3px solid #ef4444; }
.alert-item.med { border-left: 3px solid #f59e0b; }

/* Prediction Chart */
.prediction-card {
    background: black;
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 12px;
}

.prediction-card h4 {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

#projection-chart { width: 100%; }

/* Satellite Viewport */
.satellite-main {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: radial-gradient(circle at center, #111115 0%, #0a0a0c 100%);
}

.satellite-wrapper {
    flex-grow: 1;
    background: black;
    border-radius: 24px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

#satellite-canvas { width: 100%; height: 100%; }

.map-controls {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.layer-btns {
    display: flex;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.layer-btns button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.layer-btns button.active {
    background: var(--accent-blue);
    color: white;
}

/* Solar Footer */
.solar-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coord-bar {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

/* Lab Badge */
.lab-badge {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 4px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-icon {
    width: 6px;
    height: 6px;
    background: var(--accent-blue);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 var(--accent-glow); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 5px rgba(59, 130, 246, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}
