/* ===============================
   GOVERNMENT EMERGENCY DASHBOARD
================================ */

:root {
    --bg-dark: #0f172a;
    --bg-panel: #1e293b;
    --accent: #ef4444;
    --accent-light: #f87171;
    --text-light: #e2e8f0;
    --text-muted: #94a3b8;
    --primary: #3b82f6;
    --success: #22c55e;
    --radius: 0.5rem;
    --transition: 0.2s ease;
}

/* Dark mode is default - explicitly set */
html,
body,
body.dark-mode {
    --bg-dark: #0f172a;
    --bg-panel: #1e293b;
    --accent: #ef4444;
    --accent-light: #f87171;
    --text-light: #e2e8f0;
    --text-muted: #94a3b8;
    --primary: #3b82f6;
    --success: #22c55e;
}

/* Light mode override */
body.light-mode {
    --bg-dark: #f5f5f5;
    --bg-panel: #ffffff;
    --accent: #ef4444;
    --accent-light: #f87171;
    --text-light: #1a1a1a;
    --text-muted: #666;
    --primary: #3b82f6;
    --success: #22c55e;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark); /* Deep Navy */
    color: var(--text-light);
}

/* Header */

.gov-header {
    background-color: #1e293b;
    padding: 20px;
    text-align: center;
    border-bottom: 4px solid red;
}

.gov-header h1 {
    margin: 0;
    font-size: 22px;
    letter-spacing: 1px;
}

.gov-header p {
    margin-top: 6px;
    font-size: 13px;
    color: #cbd5e1;
}

/* Container */

.history-container {
    width: 95%;
    margin: 30px auto;
}

/* Filter Section */

.filter-section {
    margin-bottom: 20px;
}

.filter-section label {
    font-size: 14px;
    margin-right: 10px;
}

#severityFilter {
    padding: 6px 10px;
    background-color: var(--bg-panel);
    color: var(--text-light);
    border: 1px solid #334155;
    border-radius: var(--radius);
    transition: border-color var(--transition);
}
#severityFilter:focus {
    border-color: var(--primary);
    outline: none;
}

/* Summary Cards */

.summary-cards {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.card {
    flex: 1;
    background-color: var(--bg-panel);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    border-left: 5px solid var(--primary);
    transition: transform var(--transition);
}
.card:hover { transform: translateY(-3px); }

.card.critical {
    border-left-color: var(--accent);
}

.card.resolved {
    border-left-color: var(--success);
}

.card h3 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #e2e8f0;
}

.card p {
    font-size: 24px;
    font-weight: bold;
}

/* Table */

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #1e293b;
}

thead {
    background-color: #334155;
}

th, td {
    padding: 14px;
    text-align: center;
    font-size: 13px;
}

th {
    color: #f1f5f9;
    font-weight: 600;
}

tbody tr {
    border-bottom: 1px solid #334155;
}

tbody tr:hover {
    background-color: #243247;
}

/* Severity Colors */

.high {
    color: red;
    font-weight: bold;
}

.medium {
    color: orange;
    font-weight: bold;
}

.low {
    color: #22c55e;
    font-weight: bold;
}

/* Status Styling */

.status-active {
    color: red;
    font-weight: bold;
}

.status-resolved {
    color: #22c55e;
    font-weight: bold;
}

/* Button */

.back-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 18px;
    background-color: #334155;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.back-btn:hover {
    background-color: #475569;
}