/* ========================================
   Lulim — Design System
   ======================================== */

/* -- CSS Custom Properties -- */
:root {
    --green-primary: #16a34a;
    --green-secondary: #10b981;
    --green-dark: #059669;
    --green-hover: #0d9668;
    --text-primary: #1a1a1a;
    --text-secondary: #333;
    --text-muted: #666;
    --bg-page: #F5F5F5;
    --bg-card: #FFFFFF;
    --bg-table-header: #F8F8F8;
    --border-light: #EEE;
    --border-medium: #DDD;
    --card-radius: 12px;
    --card-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --card-padding: 30px;
    --font-family: 'Heebo', 'Inter', system-ui, -apple-system, sans-serif;
    --transition-fast: 0.2s ease;
    --focus-ring: 0 0 0 3px rgba(16, 163, 74, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-page);
    direction: rtl;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    color: var(--text-primary);
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* -- Focus styles (accessibility) -- */
:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: 4px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

/* ========================================
   Header
   ======================================== */
.header {
    background: linear-gradient(to left, #16a34a, #10b981);
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo img {
    height: 52px;
}

.header-logo-text {
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-btn {
    padding: 8px 20px;
    border-radius: 9999px;
    border: none;
    font-size: 14px;
    font-family: var(--font-family);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.nav-btn.active {
    background-color: rgba(255,255,255,0.6);
    color: var(--text-primary);
    font-weight: 600;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.nav-btn:not(.active) {
    background-color: transparent;
    color: #FFFFFF;
}

.nav-btn:not(.active):hover {
    background-color: rgba(255,255,255,0.15);
}

.header-left {
    display: flex;
    align-items: center;
}

/* ========================================
   Bell / Alerts — Unified
   ======================================== */
.bell-wrapper {
    position: relative;
}

.nav-bell-new,
.nav-bell {
    background: none;
    border: none;
    font-size: 20px;
    color: #6B7280;
    cursor: pointer;
    position: relative;
    padding: 8px;
}

.bell-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #EF4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    font-family: var(--font-family);
}

.bell-badge.has-alerts {
    display: flex;
}

/* --- Alerts dropdown panel --- */
.alerts-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 360px;
    background: var(--bg-card);
    border-radius: var(--card-radius);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    z-index: 300;
    margin-top: 8px;
    overflow: hidden;
}

.alerts-panel.open {
    display: block;
}

.alerts-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}

.alerts-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1F2937;
    margin: 0;
    flex: 1;
    text-align: center;
}

.alerts-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #9CA3AF;
    cursor: pointer;
    padding: 4px;
}

.alerts-close:hover {
    color: #374151;
}

.alerts-mark-all {
    background: none;
    border: none;
    color: var(--green-primary);
    cursor: pointer;
    font-size: 13px;
    font-family: var(--font-family);
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background var(--transition-fast);
}

.alerts-mark-all:hover {
    background: #f0fdf4;
}

.alerts-list {
    max-height: 384px;
    overflow-y: auto;
}

.alerts-empty {
    padding: 30px 20px;
    text-align: center;
    color: #9CA3AF;
    font-size: 14px;
}

.alerts-view-all {
    display: block;
    text-align: center;
    padding: 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--green-primary);
    text-decoration: none;
    border-top: 1px solid var(--border-light);
    font-family: var(--font-family);
    transition: background var(--transition-fast);
}

.alerts-view-all:hover {
    background: #F9FAFB;
}

/* --- Alert item (shared between dropdown & page) --- */
.alert-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid #F0F0F0;
    direction: rtl;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.alert-item:last-child {
    border-bottom: none;
}

.alert-item:hover {
    background: #FAFAFA;
}

.alert-item.unread {
    background: #f0fdf4;
}

.alert-item.unread .alert-title {
    font-weight: 700;
}

/* Read/unread dot */
.alert-dot {
    width: 10px;
    height: 10px;
    min-width: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #D1D5DB;
}

.alert-item.unread .alert-dot {
    background: #3B82F6;
}

/* Alert content */
.alert-content {
    flex: 1;
    text-align: right;
    min-width: 0;
}

.alert-title {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 2px;
}

.alert-body {
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.alert-time {
    font-size: 12px;
    color: #9CA3AF;
}

/* Type icon circle — filled background */
.alert-type-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.alert-type-icon.danger {
    color: #DC2626;
    background: #FEE2E2;
}

.alert-type-icon.warning {
    color: #F59E0B;
    background: #FEF3C7;
}

.alert-type-icon.info {
    color: #3B82F6;
    background: #DBEAFE;
}

.alert-type-icon.success {
    color: #16a34a;
    background: #DCFCE7;
}

/* --- User Profile in Nav --- */
.nav-user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
}

.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0D9488;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-family);
    flex-shrink: 0;
}

.nav-avatar-img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #E5E7EB;
    background: #f3f4f6;
}

.nav-user-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: var(--font-family);
    white-space: nowrap;
}

/* --- User Menu Dropdown --- */
.user-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    z-index: 300;
    margin-top: 8px;
    overflow: hidden;
    font-family: var(--font-family);
}

.user-menu.open {
    display: block;
}

.user-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    direction: rtl;
}

.user-menu-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0D9488;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.user-menu-avatar-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #E5E7EB;
    background: #f3f4f6;
}

.user-menu-info {
    direction: rtl;
    text-align: right;
}

.user-menu-name {
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 2px;
}

.user-menu-email {
    font-size: 12px;
    color: #6B7280;
}

.user-menu-phone {
    font-size: 12px;
    color: #6B7280;
    direction: ltr;
    text-align: right;
}

.user-menu-divider {
    height: 1px;
    background: #E5E7EB;
}

.user-menu-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border: none;
    background: none;
    font-family: var(--font-family);
    font-size: 14px;
    color: #EF4444;
    cursor: pointer;
    direction: rtl;
    transition: background 0.15s;
}

.user-menu-logout:hover {
    background: #FEF2F2;
}

/* ========================================
   Alerts Page
   ======================================== */
.alerts-page {
    max-width: 800px;
    margin: 32px auto;
    padding: 0 20px;
}

.alerts-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.alerts-page-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1F2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alerts-page-header h1 i {
    color: #6B7280;
}

.alerts-page-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-mark-all {
    background: white;
    border: 1px solid var(--green-primary);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-family: var(--font-family);
    color: var(--green-primary);
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.btn-mark-all:hover {
    background: #f0fdf4;
}

.alerts-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-chip {
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    font-family: var(--font-family);
    color: #6B7280;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-chip:hover {
    border-color: #D1D5DB;
}

.filter-chip.active {
    background: var(--green-primary);
    color: white;
    border-color: var(--green-primary);
}

/* Alert card — full page version */
.alert-card {
    background: white;
    border-radius: 14px;
    border: 1px solid #E5E7EB;
    padding: 18px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    direction: rtl;
    cursor: pointer;
    transition: box-shadow var(--transition-fast);
}

.alert-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.alert-card.unread {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.alert-card .alert-dot {
    width: 10px;
    height: 10px;
    min-width: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #D1D5DB;
}

.alert-card.unread .alert-dot {
    background: #3B82F6;
}

.alert-card .alert-type-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
}

.alert-card .alert-content {
    flex: 1;
}

.alert-card .alert-title {
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 4px;
}

.alert-card .alert-body {
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 4px;
    white-space: normal;
}

.alert-card .alert-time {
    font-size: 12px;
    color: #9CA3AF;
}

.alert-card.unread .alert-title {
    font-weight: 700;
}

.alerts-empty-page {
    text-align: center;
    padding: 60px 20px;
    color: #9CA3AF;
}

.alerts-empty-page i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

/* ========================================
   Page Content
   ======================================== */
.content {
    padding: 24px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ========================================
   Cards
   ======================================== */
.card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: var(--card-padding);
    margin-bottom: 24px;
}

.card-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: right;
}

/* ========================================
   Metrics Row
   ======================================== */
.metrics-row {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.metric-card {
    flex: 1;
    background: var(--bg-card);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 28px 24px;
    text-align: center;
    border-top: 4px solid var(--green-primary);
}

.metric-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--green-primary);
    margin-bottom: 8px;
    direction: ltr;
}

.metric-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .metrics-row {
        flex-direction: column;
        gap: 12px;
    }
    .metric-card {
        padding: 20px 16px;
    }
    .metric-value {
        font-size: 28px;
    }
    .metric-label {
        font-size: 13px;
    }
}

/* ========================================
   Loading States
   ======================================== */
#loading,
.loading-state {
    text-align: center;
    font-size: 16px;
    padding: 40px 20px;
    color: var(--text-muted);
}

.loading-state .spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-light);
    border-top-color: var(--green-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-error {
    color: #DC2626;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

/* ========================================
   Tables
   ======================================== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    direction: ltr;
}

.data-table caption {
    text-align: right;
    font-size: 0;
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.data-table thead th {
    background-color: var(--bg-table-header);
    color: #444;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 16px;
    text-align: center;
    border-bottom: 2px solid var(--border-light);
}

.data-table tbody td:first-child {
    font-weight: 700;
    color: #888;
}

.data-table tbody td {
    padding: 12px 16px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    border-bottom: 1px solid #F0F0F0;
}

.data-table tbody tr:hover {
    background-color: #f0fdf4;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ========================================
   Action Buttons
   ======================================== */
.action-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
    margin-bottom: 30px;
}

.export-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: var(--green-primary);
    color: white;
    font-size: 16px;
    font-family: var(--font-family);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background var(--transition-fast);
}

.export-btn:hover {
    background: var(--green-dark);
}

.action-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: var(--green-secondary);
    color: white;
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background var(--transition-fast);
}

.action-btn:hover {
    background: var(--green-dark);
}

/* ========================================
   Filter Bar (reports page)
   ======================================== */
.filters-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    background: var(--bg-card);
    font-size: 13px;
    font-family: var(--font-family);
    cursor: pointer;
    color: #555;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--green-secondary);
    color: var(--green-secondary);
}

.filter-btn[aria-expanded="true"] {
    border-color: var(--green-secondary);
    color: var(--green-secondary);
}

.filter-dropdown {
    position: relative;
}

.filter-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 12px;
    min-width: 180px;
    margin-top: 4px;
}

.filter-dropdown-content.open {
    display: block;
}

.filter-dropdown-content label {
    display: block;
    margin: 6px 0;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.filter-dropdown-content input[type="checkbox"] {
    margin-left: 6px;
}

.filter-dropdown-content input[type="date"] {
    padding: 6px 8px;
    border: 1px solid var(--border-medium);
    border-radius: 4px;
    font-size: 13px;
    width: 100%;
    margin-top: 4px;
}

.filter-clear {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: #DC2626;
    color: white;
    font-size: 13px;
    font-family: var(--font-family);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.filter-clear:hover {
    background: #B91C1C;
}

.export-filter-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: var(--green-primary);
    color: white;
    font-size: 13px;
    font-family: var(--font-family);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background var(--transition-fast);
}

.export-filter-btn:hover {
    background: var(--green-dark);
}

/* ========================================
   Loading
   ======================================== */
#loading {
    text-align: center;
    font-size: 16px;
    padding: 40px 20px;
    color: var(--text-muted);
}

/* ========================================
   Login Page
   ======================================== */
.login-body {
    background: url('../images/back.jpeg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(16, 163, 74, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--card-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 420px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.login-logo {
    margin-bottom: 30px;
}

.login-logo img {
    width: 150px;
    height: auto;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-form label {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-secondary);
    text-align: right;
    display: block;
    margin-bottom: 4px;
}

.login-form input {
    padding: 12px;
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
    text-align: right;
    transition: border-color var(--transition-fast);
    font-family: var(--font-family);
}

.login-form input:focus {
    outline: none;
    border-color: var(--green-secondary);
    box-shadow: var(--focus-ring);
}

.login-btn {
    padding: 12px;
    background: linear-gradient(to left, var(--green-primary), var(--green-secondary));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity var(--transition-fast);
    font-family: var(--font-family);
}

.login-btn:hover {
    opacity: 0.9;
}

.login-error {
    color: #DC2626;
    font-size: 14px;
    text-align: center;
}

/* ========================================
   Hamburger / Mobile Menu
   ======================================== */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100%;
    background: linear-gradient(to bottom, var(--green-secondary), var(--green-dark));
    z-index: 200;
    padding: 20px;
    box-shadow: -4px 0 12px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    visibility: hidden;
}

.mobile-menu.open {
    transform: translateX(0);
    visibility: visible;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    margin-bottom: 20px;
}

.mobile-menu .nav-btn {
    display: flex;
    width: 100%;
    margin-bottom: 8px;
    justify-content: flex-start;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 199;
}

.mobile-overlay.open {
    display: block;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
    .nav-brand span { display: none; }
    .nav-user-name { display: none; }
    .header {
        padding: 10px 16px;
    }
    .header-nav {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .content {
        padding: 12px;
    }
    .card {
        padding: 14px;
        border-radius: 8px;
        margin-bottom: 12px;
    }
    .card-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    .data-table {
        width: 100%;
    }
    .data-table thead th {
        font-size: 10px;
        font-weight: 700;
        padding: 5px 2px;
        white-space: nowrap;
        vertical-align: bottom;
    }
    .data-table tbody td {
        font-size: 10px;
        padding: 5px 2px;
        white-space: nowrap;
    }
    .data-table tbody td:first-child {
        white-space: normal;
        word-break: keep-all;
    }
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .alerts-panel {
        position: fixed;
        top: auto;
        bottom: auto;
        left: 5%;
        right: 5%;
        width: 90%;
        max-width: 400px;
        margin-top: 10px;
        z-index: 500;
        max-height: 70vh;
        overflow-y: auto;
    }
    .user-selector select {
        font-size: 12px;
        padding: 5px 10px;
    }
    .action-bar {
        gap: 8px;
    }
    .export-btn,
    .action-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* Summary Dashboard - KPI Cards */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.kpi-card {
    background: #fff;
    border-radius: 10px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #4CAF50;
    transition: transform 0.2s, box-shadow 0.2s;
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.kpi-card .kpi-value {
    font-size: 32px;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 8px;
}

.kpi-card .kpi-label {
    font-size: 16px;
    color: #555;
    font-weight: 500;
}

@media only screen and (max-width: 991.98px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 767.98px) {
    .metrics-grid {
        grid-template-columns: 1fr;
        padding: 10px;
    }
    .kpi-card .kpi-value {
        font-size: 26px;
    }
    .kpi-card .kpi-label {
        font-size: 14px;
    }
}
