/* 
 * System Health Dashboard Styles
 * Added 2026-02-08
 */

/* ===== SYSTEM HEALTH PAGE ===== */
.health-summary {
    margin-bottom: 24px;
}

.health-status-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    border-left: 4px solid var(--accent-green);
}

.health-status-card.warning {
    border-left-color: var(--accent-yellow);
}

.health-status-card.error {
    border-left-color: var(--accent-red);
}

.health-icon {
    font-size: 32px;
}

.health-text {
    flex: 1;
}

.health-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.health-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.health-section {
    margin-bottom: 32px;
}

.health-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.health-section .section-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Freshness Grid */
.freshness-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.freshness-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    position: relative;
    transition: all var(--transition-fast);
}

.freshness-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.freshness-card.fresh {
    border-left: 3px solid var(--accent-green);
}

.freshness-card.stale {
    border-left: 3px solid var(--accent-red);
    background: rgba(239, 68, 68, 0.05);
}

.freshness-card.warning {
    border-left: 3px solid var(--accent-yellow);
    background: rgba(234, 179, 8, 0.08);
}

.freshness-card.weekend {
    border-left: 3px solid var(--accent-blue);
    opacity: 0.7;
}

.source-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.source-age {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.freshness-card.stale .source-age {
    color: var(--accent-red);
}

.freshness-card.warning .source-age {
    color: var(--accent-yellow);
}

.freshness-card.fresh .source-age {
    color: var(--accent-green);
}

.source-status {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Schedule Table */
.screener-schedule {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.schedule-table th {
    background: var(--bg-elevated);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-table td {
    font-size: 13px;
    color: var(--text-primary);
}

.schedule-table tr:last-child td {
    border-bottom: none;
}

.schedule-table tbody tr:hover {
    background: var(--bg-hover);
}

/* Health Legend */
.health-legend {
    display: flex;
    gap: 24px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.health-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.health-legend .status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: none;
}

.health-legend .status-dot.fresh {
    background: var(--accent-green);
}

.health-legend .status-dot.stale {
    background: var(--accent-red);
}

.health-legend .status-dot.warning {
    background: var(--accent-yellow);
}

.health-legend .status-dot.weekend {
    background: var(--accent-blue);
}

/* Health badge in nav */
.nav-badge.health-badge {
    background: var(--accent-yellow);
    color: #000;
}