/* ATLAS Worldview Dashboard - Bloomberg Terminal Style */

* {
    box-sizing: border-box;
}

body {
    background-color: #0a0c0e;
    color: #e4e6e7;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.header {
    padding: 24px 32px;
    background: linear-gradient(135deg, #141618 0%, #1a1c1e 100%);
    border-bottom: 2px solid #2a2c2e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.header h1 {
    margin: 0;
    padding: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-transform: uppercase;
}

.header p {
    margin: 8px 0 0 0;
    font-size: 14px;
    color: #8a8c8e;
    font-weight: 400;
}

.timestamp {
    margin-top: 12px;
    font-size: 12px;
    color: #66b3ff;
    font-family: 'Courier New', monospace;
}

h2 {
    margin: 0 0 16px 0;
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #2a2c2e;
    padding-bottom: 8px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 32px;
    max-width: 1800px;
    margin: 0 auto;
}

.panel {
    background: linear-gradient(135deg, #141618 0%, #1a1c1e 100%);
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #2a2c2e;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.panel:hover {
    border-color: #3a3c3e;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.panel.full {
    grid-column: span 2;
}

canvas {
    max-width: 100%;
    height: auto !important;
}

#heatmap {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

#heatmap svg {
    width: 100%;
    height: 100%;
}

#riskTable {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

table th {
    background: #1a1c1e;
    color: #8a8c8e;
    text-align: left;
    padding: 12px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #2a2c2e;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #2a2c2e;
    color: #e4e6e7;
}

table tr:hover {
    background: #1a1c1e;
}

.risk-critical {
    color: #ff4d4d;
    font-weight: 600;
}

.risk-high {
    color: #ffaa00;
    font-weight: 600;
}

.risk-medium {
    color: #66b3ff;
    font-weight: 500;
}

.risk-low {
    color: #66ff99;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 1200px) {
    .grid {
        grid-template-columns: 1fr;
    }
    
    .panel.full {
        grid-column: span 1;
    }
}

/* Chart.js custom colors */
:root {
    --chart-bg: #141618;
    --chart-grid: #2a2c2e;
    --chart-text: #8a8c8e;
    --chart-critical: #ff4d4d;
    --chart-high: #ffaa00;
    --chart-medium: #66b3ff;
    --chart-low: #66ff99;
}
