/* ═══════════════════════════════════════════════════════════════
   MYJAI BLOOD BANK - Clean Modern Theme
   Simple, elegant, professional healthcare design
   ═══════════════════════════════════════════════════════════════ */

:root {
    --red-50: #fef2f2;
    --red-100: #fee2e2;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --red-700: #b91c1c;

    --blue-50: #eff6ff;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;

    --green-50: #f0fdf4;
    --green-500: #22c55e;
    --green-600: #16a34a;

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;

    --white: #ffffff;
}

/* ═══════════════════════════════════════════════════════════════
   BASE
   ═══════════════════════════════════════════════════════════════ */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
}

a {
    color: var(--blue-600);
    text-decoration: none;
}

a:hover {
    color: var(--red-600);
}

/* ═══════════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════════ */

.navbar {
    background: var(--white) !important;
    border-bottom: 1px solid var(--gray-200);
    padding: 8px 0;
}

.navbar-brand {
    color: var(--red-600) !important;
    font-weight: 700;
    font-size: 18px;
    white-space: nowrap;
}

.navbar-brand i {
    margin-right: 6px;
}

.nav-link {
    color: var(--gray-700) !important;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 12px !important;
    border-radius: 6px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link:hover,
.nav-link.active {
    background: var(--red-50);
    color: var(--red-600) !important;
}

.dropdown-menu {
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.dropdown-item:hover {
    background: var(--red-50);
    color: var(--red-600);
}

/* Navbar Toggler */
.navbar-toggler {
    border: 1px solid var(--gray-300);
    padding: 6px 10px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Mobile Navbar */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--white);
        padding: 15px;
        margin-top: 10px;
        border-radius: 8px;
        border: 1px solid var(--gray-200);
    }

    .navbar-nav {
        gap: 4px;
    }

    .nav-link {
        padding: 10px 15px !important;
        font-size: 15px;
    }

    .navbar-brand {
        font-size: 16px;
    }
}

/* Tablet adjustments */
@media (min-width: 992px) and (max-width: 1199px) {
    .nav-link {
        font-size: 13px;
        padding: 8px 10px !important;
    }

    .navbar-brand {
        font-size: 16px;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .nav-link {
        font-size: 14px;
        padding: 8px 14px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════════ */

.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.card-header {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    padding: 14px 18px;
    font-weight: 600;
    border-radius: 12px 12px 0 0 !important;
}

.card-header.bg-danger {
    background: var(--red-600) !important;
    color: var(--white);
}

.card-header.bg-primary {
    background: var(--blue-600) !important;
    color: var(--white);
}

.card-header.bg-success {
    background: var(--green-600) !important;
    color: var(--white);
}

.card-body {
    padding: 18px;
}

/* ═══════════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════════ */

.form-control,
.form-select {
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    padding: 10px 12px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--red-500);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 4px;
}

.form-check-input:checked {
    background-color: var(--red-600);
    border-color: var(--red-600);
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.btn {
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
}

.btn-primary {
    background: var(--blue-600);
    border-color: var(--blue-600);
}

.btn-primary:hover {
    background: var(--blue-500);
}

.btn-danger {
    background: var(--red-600);
    border-color: var(--red-600);
}

.btn-danger:hover {
    background: var(--red-700);
}

.btn-success {
    background: var(--green-600);
    border-color: var(--green-600);
}

.btn-outline-primary {
    color: var(--blue-600);
    border-color: var(--blue-600);
}

.btn-outline-primary:hover {
    background: var(--blue-600);
}

.btn-outline-danger {
    color: var(--red-600);
    border-color: var(--red-600);
}

.btn-outline-danger:hover {
    background: var(--red-600);
}

/* ═══════════════════════════════════════════════════════════════
   ALERTS
   ═══════════════════════════════════════════════════════════════ */

.alert {
    border: none;
    border-radius: 8px;
}

.alert-success {
    background: var(--green-50);
    color: #166534;
}

.alert-danger {
    background: var(--red-50);
    color: #991b1b;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
}

.alert-info {
    background: var(--blue-50);
    color: #1e40af;
}

/* ═══════════════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════════════ */

.badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
}

.badge.bg-danger {
    background: var(--red-600) !important;
}

.badge.bg-success {
    background: var(--green-600) !important;
}

.badge.bg-primary {
    background: var(--blue-600) !important;
}

/* ═══════════════════════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════════════════════ */

.table thead th {
    background: var(--gray-50);
    font-weight: 600;
    font-size: 13px;
    border-bottom: 1px solid var(--gray-200);
}

.table tbody td {
    padding: 12px;
    border-bottom: 1px solid var(--gray-100);
}

.table-hover tbody tr:hover {
    background: var(--gray-50);
}

/* ═══════════════════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════════════════ */

.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-header {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 20px;
}

.modal-body {
    padding: 20px;
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════════════════════════ */

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, var(--red-600) 0%, #e11d48 100%);
    color: var(--white);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 24px;
    text-align: center;
}

.hero-banner h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-banner p {
    opacity: 0.9;
    margin-bottom: 16px;
}

/* Stat Cards */
.stat-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 22px;
}

.stat-card.donors .stat-icon {
    background: var(--red-50);
    color: var(--red-600);
}

.stat-card.requirements .stat-icon {
    background: var(--blue-50);
    color: var(--blue-600);
}

.stat-card.requests .stat-icon {
    background: var(--green-50);
    color: var(--green-600);
}

.stat-card.messages .stat-icon {
    background: #fef3c7;
    color: #d97706;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--gray-500);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

footer {
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 16px 0;
}

footer p {
    color: var(--gray-500);
    margin: 0;
}