/* public/assets/css/style.css */

/* ===== CSS VARIABLES ===== */
:root {
    --primary-blue: #0d2a52;
    --secondary-white: #ffffff;
    --accent-red: #b11226;
    --light-blue: #1e4a7a;
    --dark-blue: #081733;
    --soft-gray: #f0f2f5;
    --border-gray: #e2e8f0;
    --text-dark: #1a202c;
    --text-muted: #718096;
    --success: #28a745;
    --warning: #f6ad55;
    --danger: #dc3545;
    --info: #17a2b8;
    --app-logo: url('../images/pcg image.png');
    --app-bg-image: url('../images/brigade image.jpg');
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --sidebar-width: 265px;
    --header-height: 70px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.25s ease;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
}

/* ===== GLOBAL RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--soft-gray);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ===== BACKGROUND IMAGE ===== */
.page-with-bg {
    background-image: var(--app-bg-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
}

.page-with-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13,42,82,0.85) 0%, rgba(30,74,122,0.75) 100%);
    z-index: -1;
}

/* ===== BOOTSTRAP OVERRIDES ===== */
.btn-primary {
    background-color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    color: var(--secondary-white) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--light-blue) !important;
    border-color: var(--light-blue) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13,42,82,0.3) !important;
}

.btn-secondary {
    background-color: var(--secondary-white) !important;
    border: 2px solid var(--primary-blue) !important;
    color: var(--primary-blue) !important;
}

.btn-secondary:hover {
    background-color: var(--primary-blue) !important;
    color: var(--secondary-white) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13,42,82,0.2) !important;
}

.btn-danger {
    background-color: var(--accent-red) !important;
    border-color: var(--accent-red) !important;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(177,18,38,0.3) !important;
}

.btn-success:hover,
.btn-warning:hover,
.btn-info:hover {
    transform: translateY(-1px);
}

.badge-primary   { background-color: var(--primary-blue) !important; }
.badge-danger    { background-color: var(--accent-red) !important; }
.badge-success   { background-color: var(--success) !important; }
.badge-warning   { background-color: var(--warning) !important; color: #333 !important; }
.badge-info      { background-color: var(--info) !important; }
.badge-secondary { background-color: var(--text-muted) !important; }

/* ===== GLASS PANEL ===== */
.glass-panel {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 2rem;
}

.glass-card {
    background: var(--secondary-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-gray);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.glass-card:hover {
    box-shadow: var(--shadow-md);
}

/* ===== LOGIN PAGE ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: var(--app-bg-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13,42,82,0.9) 0%, rgba(177,18,38,0.7) 100%);
    z-index: 0;
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 450px;
    padding: 1rem;
}

.login-logo .logo-image {
    max-width: 120px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.app-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
}

.app-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    color: var(--secondary-white);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
    scrollbar-width: none;
}

.sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar-header {
    padding: 1.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.15);
}

.sidebar-logo {
    max-width: 70px;
    height: auto;
    margin-bottom: 0.5rem;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: var(--secondary-white);
    letter-spacing: 0.3px;
}

.sidebar-nav {
    padding: 0.75rem 0;
}

.sidebar-nav .nav-section {
    padding: 0.5rem 1.25rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.4);
    font-weight: 700;
    margin-top: 0.75rem;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 0.7rem 1.25rem;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
    font-size: 0.9rem;
    margin: 2px 8px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.sidebar-nav .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--secondary-white);
    border-left-color: var(--accent-red);
    padding-left: 1.5rem;
}

.sidebar-nav .nav-link.active {
    background: linear-gradient(90deg, rgba(177,18,38,0.3), rgba(255,255,255,0.08));
    color: var(--secondary-white);
    border-left-color: var(--accent-red);
    font-weight: 600;
}

.sidebar-nav .nav-icon {
    margin-right: 0.75rem;
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* ── Main Content ── */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    background-color: var(--soft-gray);
}

/* ── Top Header ── */
.top-header {
    height: var(--header-height);
    background: var(--secondary-white);
    border-bottom: 1px solid var(--border-gray);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Notification Bell */
.notification-bell {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.notification-bell:hover {
    background-color: var(--soft-gray);
}

.notification-icon {
    font-size: 1.4rem;
    color: var(--primary-blue);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--accent-red);
    color: var(--secondary-white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    border: 2px solid white;
}

/* User Dropdown */
.user-dropdown {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.user-dropdown:hover {
    background-color: var(--soft-gray);
    border-color: var(--border-gray);
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-white);
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.user-info { text-align: left; }

.user-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.85rem;
    display: block;
    line-height: 1.2;
}

.user-role {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Content Area */
.content-area {
    padding: 1.75rem 2rem;
}

/* ===== DASHBOARD STAT CARDS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.stat-card {
    background: var(--secondary-white);
    border-radius: var(--radius-md);
    padding: 1.4rem 1.5rem;
    border-left: 4px solid var(--primary-blue);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Subtle background shape */
.stat-card::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.04;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-card.accent-red     { border-left-color: var(--accent-red); }
.stat-card.accent-success { border-left-color: var(--success); }
.stat-card.accent-warning { border-left-color: var(--warning); }
.stat-card.accent-info    { border-left-color: var(--info); }

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.stat-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-icon {
    font-size: 1.6rem;
    opacity: 0.18;
    line-height: 1;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 0.3rem;
    letter-spacing: -0.5px;
}

.stat-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== DATA TABLES ===== */
.data-table-wrapper {
    background: var(--secondary-white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-gray);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--soft-gray);
}

.table-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
}

.table-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
}

/* ── Table Itself ── */
.table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    color: var(--secondary-white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.8px;
    border: none;
    padding: 0.9rem 1rem;
    white-space: nowrap;
}

/* Rounded corners on table header */
.table thead th:first-child {
    border-radius: var(--radius-sm) 0 0 0;
}

.table thead th:last-child {
    border-radius: 0 var(--radius-sm) 0 0;
}

.table tbody tr {
    transition: var(--transition);
    border-bottom: 1px solid var(--border-gray);
}

.table tbody tr:hover {
    background-color: rgba(13,42,82,0.03);
    transform: scale(1.0015);
}

.table tbody tr:last-child {
    border-bottom: none;
}

.table tbody td {
    vertical-align: middle;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    border-top: none;
    border-bottom: 1px solid var(--border-gray);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Striped effect */
.table tbody tr:nth-child(even) {
    background-color: rgba(240,242,245,0.5);
}

.table tbody tr:nth-child(even):hover {
    background-color: rgba(13,42,82,0.03);
}

/* ===== NAV TABS ===== */
.nav-tabs {
    border-bottom: 2px solid var(--border-gray);
    gap: 4px;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.65rem 1.1rem;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: var(--transition);
    background: transparent;
    margin-bottom: -2px;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-blue);
    background-color: rgba(13,42,82,0.04);
    border-bottom-color: var(--primary-blue);
}

.nav-tabs .nav-link.active {
    color: var(--primary-blue);
    background-color: var(--secondary-white);
    border-bottom: 3px solid var(--primary-blue);
    font-weight: 700;
}

/* ===== BADGES ===== */
.badge {
    padding: 0.35rem 0.7rem;
    font-weight: 600;
    border-radius: 20px;
    font-size: 0.72rem;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ===== FORMS ===== */
.form-group { margin-bottom: 1.25rem; }

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
}

.form-control,
.form-select {
    border: 1.5px solid var(--border-gray);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    transition: var(--transition);
    background-color: var(--secondary-white);
    color: var(--text-dark);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(13,42,82,0.1);
    outline: none;
}

.form-control:hover,
.form-select:hover {
    border-color: var(--light-blue);
}

.form-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 0.88rem;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-sm {
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
}

/* ===== PROGRESS BARS ===== */
.progress {
    border-radius: 20px;
    background-color: var(--soft-gray);
    overflow: hidden;
}

.progress-bar {
    transition: width 0.6s ease;
    border-radius: 20px;
}

/* ===== ALERTS ===== */
.alert {
    border-radius: var(--radius-sm);
    border: none;
    padding: 0.9rem 1.1rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    border-left: 4px solid;
}

.alert-success { border-left-color: var(--success); background-color: #f0fff4; color: #276749; }
.alert-danger  { border-left-color: var(--danger);  background-color: #fff5f5; color: #c53030; }
.alert-warning { border-left-color: var(--warning); background-color: #fffbeb; color: #b7791f; }
.alert-info    { border-left-color: var(--info);    background-color: #ebf8ff; color: #2b6cb0; }

/* ===== MODALS ===== */
.modal-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: var(--secondary-white);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    padding: 1rem 1.5rem;
}

.modal-title { font-weight: 700; font-size: 1rem; }

.modal-content {
    border-radius: var(--radius-md);
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden;
}

.modal-body { padding: 1.5rem; }

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-gray);
    background: var(--soft-gray);
}

/* ===== LIST GROUP ===== */
.list-group-item {
    border-color: var(--border-gray);
    transition: var(--transition);
    font-size: 0.9rem;
}

.list-group-item-action:hover {
    background-color: rgba(13,42,82,0.04);
    border-left: 3px solid var(--primary-blue);
    padding-left: 1.1rem;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 3.5rem 1.5rem;
}

.empty-state-icon {
    font-size: 3.5rem;
    color: var(--text-muted);
    opacity: 0.25;
    margin-bottom: 1rem;
    display: block;
}

.empty-state-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.empty-state-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* ===== PAGINATION ===== */
.pagination .page-link {
    border-radius: var(--radius-sm) !important;
    margin: 0 2px;
    border-color: var(--border-gray);
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    padding: 0.45rem 0.75rem;
}

.pagination .page-link:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* ===== DROPDOWN ===== */
.dropdown-menu {
    border-radius: var(--radius-sm);
    border-color: var(--border-gray);
    box-shadow: var(--shadow-md);
    padding: 0.4rem;
    font-size: 0.88rem;
}

.dropdown-item {
    border-radius: 6px;
    padding: 0.5rem 0.9rem;
    transition: var(--transition);
    font-weight: 500;
    color: var(--text-dark);
}

.dropdown-item:hover {
    background-color: rgba(13,42,82,0.07);
    color: var(--primary-blue);
}

.dropdown-divider {
    border-color: var(--border-gray);
    margin: 0.3rem 0;
}

/* ===== NOTIFICATION DROPDOWN ===== */
.notification-wrapper { position: relative; }

.notification-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 340px;
    max-height: 480px;
    background: var(--secondary-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-gray);
    z-index: 9999;
    display: none;
    overflow: hidden;
    animation: dropIn 0.2s ease;
}

@keyframes dropIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.notification-dropdown.show { display: block; }

.notification-dropdown-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--soft-gray);
}

.notification-dropdown-header h6 {
    color: var(--primary-blue);
    font-weight: 700;
    margin: 0;
    font-size: 0.9rem;
}

.notification-dropdown-body {
    max-height: 360px;
    overflow-y: auto;
}

.notification-dropdown-footer {
    padding: 0.6rem 1rem;
    border-top: 1px solid var(--border-gray);
    text-align: center;
    background: var(--soft-gray);
}

.notification-item {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--border-gray);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.notification-item:hover { background-color: rgba(13,42,82,0.03); }
.notification-item:last-child { border-bottom: none; }

.notification-item.unread {
    background-color: rgba(13,42,82,0.04);
    border-left: 3px solid var(--primary-blue);
}

.notification-item-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
    font-size: 0.85rem;
}

.notification-item-message {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
    line-height: 1.4;
}

.notification-item-time {
    color: var(--text-muted);
    font-size: 0.72rem;
}

.notification-item-type {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-right: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notification-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
}

.notification-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.25;
    display: block;
}

/* Scrollbar */
.notification-dropdown-body::-webkit-scrollbar { width: 4px; }
.notification-dropdown-body::-webkit-scrollbar-track { background: var(--soft-gray); }
.notification-dropdown-body::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

/* ===== CARDS (Bootstrap) ===== */
.card {
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover { box-shadow: var(--shadow-md); }

.card-header {
    background: var(--soft-gray);
    border-bottom: 1px solid var(--border-gray);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md) var(--radius-md) 0 0 !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .top-header {
        padding: 0 1rem;
    }

    .content-area {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .stat-value {
        font-size: 1.8rem;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table thead th,
    .table tbody td {
        padding: 0.7rem 0.75rem;
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1.1rem 1.25rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-primary-blue { color: var(--primary-blue) !important; }
.text-accent-red   { color: var(--accent-red) !important; }
.bg-primary-blue   { background-color: var(--primary-blue) !important; }
.bg-accent-red     { background-color: var(--accent-red) !important; }
.border-primary-blue { border-color: var(--primary-blue) !important; }

/* Smooth page transitions */
.content-area > * {
    animation: fadeUp 0.3s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}