/* ---------------------------------------------------------------------------
   Base / body
   --------------------------------------------------------------------------- */
body {
    background-color: #1a1a2e;
    color: #e0e0e0;
}

/* ---------------------------------------------------------------------------
   Navbar — dark theme with accent hover
   --------------------------------------------------------------------------- */
.sarga-nav {
    background-color: #16213e !important;
}

.sarga-nav .nav-link {
    color: #a0a0c0;
    font-weight: 500;
    transition: color 0.2s;
    padding: 0.5rem 0.75rem;
}

.sarga-nav .nav-link:hover,
.sarga-nav .nav-link.active {
    color: #e94560 !important;
}

.navbar {
    background-color: #16213e !important;
}

/* ---------------------------------------------------------------------------
   Cards — dashboard summary cards
   --------------------------------------------------------------------------- */
.card {
    background-color: #16213e;
    border: 1px solid #0f3460;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
}

.card-title {
    color: #a0a0c0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #e94560;
}

/* ---------------------------------------------------------------------------
   Tables
   --------------------------------------------------------------------------- */
.table {
    color: #e0e0e0;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    color: #e0e0e0;
}

.table th {
    color: #a0a0c0;
    text-align: center;
    border: 1px solid #0f3460;
}

.table td {
    border-bottom-color: #0f3460;
}

/* Force center alignment for stats detail tables */
#perf-table td,
#hw-table td,
#hw-under-provisioned td,
#staleness-table td,
#staleness-at-risk td {
    text-align: center !important;
}

/* ---------------------------------------------------------------------------
   Tabs
   --------------------------------------------------------------------------- */
.nav-tabs .nav-link {
    color: #a0a0c0;
}

.nav-tabs .nav-link.active {
    color: #e94560;
    border-bottom-color: #e94560;
    background-color: transparent;
}

a.text-muted:hover {
    color: #e94560 !important;
}

/* ---------------------------------------------------------------------------
   Chart canvases
   --------------------------------------------------------------------------- */
canvas {
    max-height: 350px;
}

/* ---------------------------------------------------------------------------
   Leaflet map
   --------------------------------------------------------------------------- */
#geo-map {
    background-color: #1a1a2e;
    border: 1px solid #0f3460;
}

/* Darken OSM tiles to match the dark theme */
.leaflet-tile-pane {
    filter: brightness(0.7) invert(1) contrast(3) hue-rotate(200deg);
}

/* ---------------------------------------------------------------------------
   Alerts
   --------------------------------------------------------------------------- */
.alert {
    font-size: 0.9rem;
}

/* ---------------------------------------------------------------------------
   Section headings
   --------------------------------------------------------------------------- */
h5, h6 {
    color: #a0a0c0;
}

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */
footer {
    background-color: #16213e;
}
