/**
 * SAM Status Dashboard CSS
 * Styles specific to the system status dashboard
 */

/* ===================================================================
   Status Badges
   =================================================================== */

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
    display: inline-block;
}

.status-online {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-degraded {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.status-offline {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===================================================================
   Metric Cards
   =================================================================== */

.metric-card {
    background: var(--bg-gray-light);
    border-left: 4px solid var(--ncar-blue);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-sm);
}

.metric-card h6 {
    color: var(--ncar-gray);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.metric-card .value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #212529;
}

/* ===================================================================
   Tables
   =================================================================== */

.queue-table,
.filesystem-table,
.nodetype-table {
    font-size: 0.9rem;
}

/* ===================================================================
   Outage Cards
   =================================================================== */

.outage-card {
    border-left: 4px solid #dc3545;
    margin-bottom: 1rem;
}

.outage-card.severity-critical {
    border-left-color: #dc3545;
}

.outage-card.severity-major {
    border-left-color: #fd7e14;
}

.outage-card.severity-minor {
    border-left-color: #ffc107;
}

.outage-card.severity-maintenance {
    border-left-color: #17a2b8;
}

/* ===================================================================
   Reservation Cards
   =================================================================== */

.reservation-card {
    border-left: 4px solid #17a2b8;
}

/* ===================================================================
   Status Severity Border Utilities
   Used to replace inline style="border-left: ..." attributes.
   !important matches Bootstrap's .border-start specificity.
   =================================================================== */

.border-status-success { border-left: 4px solid #198754 !important; }
.border-status-info    { border-left: 4px solid #0dcaf0 !important; }
.border-status-primary { border-left: 4px solid #0d6efd !important; }
.border-status-warning { border-left: 4px solid #ffc107 !important; }

/* ===================================================================
   Login Node Load Stack
   Three tightly-stacked micro progress bars (1min / 5min / 15min).
   When all three values are equal they read as a single bar.
   =================================================================== */

.load-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 80px;
}

.load-stack .progress {
    height: 5px;
    border-radius: 0;
    background-color: var(--bg-gray-medium, #e9ecef);
    overflow: hidden;
}

.load-stack .progress:first-child {
    border-radius: 3px 3px 0 0;
}

.load-stack .progress:last-child {
    border-radius: 0 0 3px 3px;
}

.load-stack .progress-bar {
    transition: width 0.4s ease;
}

/* ===================================================================
   Utility Styles
   =================================================================== */

.last-updated {
    color: var(--ncar-gray);
    font-size: 0.875rem;
}

.no-data-message {
    text-align: center;
    color: var(--ncar-gray);
    padding: 2rem;
    font-style: italic;
}
