/* Import Bootstrap so we can style the login area without editing templates */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css');
/* Modern system font (falls back to system UI if Google Fonts blocked) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

html, body {
    height: 100%;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, #f7fbff 0%, #f2f6fb 100%);
    color: #23303b;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}

a {
    color: #0077cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.main-header {
    background: linear-gradient(90deg, #0d6efd 0%, #6f42c1 60%);
    color: #fff;
    padding: 0.75rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 6px 18px rgba(13,37,63,0.08);
}

.main-header h1 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
}

.main-header h1::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    background-image: url('/j17crm/assets/img/logo.svg');
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 8px;
    flex-shrink: 0;
}

.main-header nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.main-header nav a {
    padding: 0.38rem 0.7rem;
    border-radius: 8px;
    color: rgba(255,255,255,0.95);
    font-weight: 600;
    text-decoration: none;
    transition: background .12s ease, transform .08s ease;
}

.main-header nav a:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-1px);
}

/* profile dropdown button inside header - keep visual parity with nav links */
.profile-dropdown .dropdown-toggle {
    padding: 0.38rem 0.7rem;
    border-radius: 8px;
    color: rgba(255,255,255,0.95);
    font-weight: 600;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.06);
}
.profile-dropdown .dropdown-toggle:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-1px);
}

/* Scoped dark style for header profile dropdown to improve contrast over white default */
.profile-dropdown .dropdown-menu {
    background: linear-gradient(180deg, #17324d 0%, #1f4f7b 100%);
    color: #fff;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(16,30,45,0.35);
}
.profile-dropdown .dropdown-menu .dropdown-item {
    color: #fff;
    background: transparent;
}
.profile-dropdown .dropdown-menu .dropdown-item:hover,
.profile-dropdown .dropdown-menu .dropdown-item:focus {
    background: rgba(255,255,255,0.06);
    color: #fff;
}
.profile-dropdown .dropdown-menu .dropdown-divider {
    border-color: rgba(255,255,255,0.12);
}
.profile-dropdown .dropdown-menu .text-danger {
    color: #ffb3b3 !important; /* slightly lighter red on dark bg for visibility */
}

/* highlight active link when on the same page (simple heuristic using href match) */
.main-header nav a.active,
.main-header nav a[aria-current='page']{
    background: rgba(255,255,255,0.12);
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.04);
}

@media (max-width: 720px) {
    .main-header {
        flex-direction: column;
        align-items: stretch;
    }
    .main-header nav {
        flex-wrap: wrap;
        gap: 0.4rem;
    }
}

.content {
    flex: 1 0 auto; /* allow main content to grow and push footer to the bottom */
    padding: 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.btn {
    background-color: #0077cc;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
}

.btn:hover {
    background-color: #005fa3;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background-color: #fff;
}

.table th,
.table td {
    padding: 0.75rem;
    border: 1px solid #ddd;
}

.table th {
    background-color: #f0f0f0;
}
.donor-table-card {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(17, 31, 44, 0.08);
    padding: 1.75rem;
    border: 1px solid rgba(17, 31, 44, 0.08);
}

.donor-table-toolbar {
    background: linear-gradient(180deg, #f7f9fc 0%, #eef2f6 100%);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(17, 31, 44, 0.06);
}

.donor-table-toolbar .form-control,
.donor-table-toolbar .form-select {
    border: 1px solid rgba(17, 31, 44, 0.12);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.donor-table-toolbar .form-control:focus,
.donor-table-toolbar .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.donor-table-toolbar .btn {
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.donor-rows-per-page {
    background: #ffffff;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(17, 31, 44, 0.12);
}

.donor-rows-per-page label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #4a5f72;
}

.donor-rows-per-page select {
    width: 70px;
    box-shadow: none;
    border: 1px solid rgba(17, 31, 44, 0.12);
    border-radius: 0.4rem;
    padding: 0.4rem 0.6rem;
    font-weight: 600;
}

.donor-rows-per-page span { 
    font-size: 0.9rem; 
    color: #6b7b88; 
    font-weight: 600; 
}

.donor-pagination-group {
    min-height: 38px;
}

.donor-pagination .pagination {
    gap: 0.25rem;
}

.donor-pagination .page-item .page-link {
    border-radius: 0.5rem;
    border: 1px solid rgba(13, 110, 253, 0.15);
    color: #1f4f7b;
    font-weight: 600;
    padding: 0.4rem 0.7rem;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.donor-pagination .page-item .page-link:hover {
    background-color: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}

.donor-pagination .page-item.active .page-link {
    background: linear-gradient(180deg, #0d6efd 0%, #0a58ca 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.25);
}

.donor-pagination .page-item.disabled .page-link {
    color: #94a3b8;
    background-color: rgba(241, 245, 249, 0.6);
    border-color: rgba(148, 163, 184, 0.3);
}

.donor-table-toolbar-top {
    justify-content: flex-start;
    flex-wrap: wrap;
    row-gap: 1rem;
    column-gap: 1.5rem;
}

.donor-table-toolbar-top > div,
.donor-table-toolbar-top form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.donor-table-toolbar-top form {
    flex: 1;
    min-width: 300px;
    gap: 0.75rem;
}

.donor-table-toolbar-top label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #4a5f72;
    margin-bottom: 0;
}

.donor-table-toolbar-bottom {
    justify-content: space-between;
}

.donor-table-toolbar-bottom .donor-pagination {
    margin-left: auto;
}

@media (max-width: 768px) {
    .donor-table-card {
        padding: 1rem;
    }

    .donor-table-toolbar {
        padding: 0.75rem;
        gap: 1rem;
    }

    .donor-table-toolbar-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .donor-table-toolbar-bottom .donor-pagination {
        margin-left: 0;
        justify-content: flex-end;
    }

    .donor-pagination-group {
        justify-content: space-between;
        width: 100%; 
    }
}

.form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    background-color: #fff;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.form label {
    font-weight: bold;
}

.form input,
.form select,
.form textarea {
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    width: 100%;
    box-sizing: border-box;
}

.form button {
    grid-column: 1 / -1;
    padding: 0.75rem;
    background-color: #1f4f7b;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.form button:hover {
    background-color: #163957;
}

.alert {
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-error {
    background-color: #fddede;
    color: #b00020;
}

.alert-success {
    background-color: #e0f7e9;
    color: #1a7f37;
}

.auth-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-image: url('/j17crm/assets/img/bg-hero-v2.svg');
    background-size: cover;
    background-position: center center;
    position: relative;
}

.auth-container {
    background-color: #ffffff;
    padding: 2.25rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(35,48,59,0.09);
    width: 380px;
    border: 1px solid rgba(31,79,123,0.06);
    transition: transform .12s ease, box-shadow .12s ease;
}

/* subtle overlay to make the card readable on top of the hero image */
.auth-body::after {
    content: '';
    position: absolute;
    inset: 0;
    /* slightly darker translucent overlay for contrast against vibrant hero */
    background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(255,255,255,0.06) 100%);
    pointer-events: none;
}

/* decorative pattern for small areas (optional) */
.auth-body .auth-pattern {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 160px;
    height: 160px;
    background-size: cover;
    opacity: 0.9;
    pointer-events: none;
}

.auth-container .form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(35,48,59,0.12);
}

/* Style the existing <h2> inside .auth-container (keeps HTML unchanged) */
.auth-container > h2 {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    color: #17324d;
    text-align: center;
    font-weight: 700;
}

.auth-container p.auth-subtitle {
    margin: 0 0 1rem 0;
    text-align: center;
    color: #586b75;
    font-size: 0.95rem;
}

/* Scoped improvements for the login/register card (keeps original HTML untouched) */
/* helper branding class (optional to add inside markup) */
.auth-card-brand {
    text-align: center;
    margin-bottom: 0.75rem;
}

.auth-card-brand h2 {
    margin: 0;
    color: #1f4f7b;
    font-weight: 700;
    font-size: 1.5rem;
}

.auth-container .form label {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.auth-container .form input[type="email"],
.auth-container .form input[type="password"],
.auth-container .form input[type="text"] {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    box-shadow: none;
    width: 100%;
    box-sizing: border-box;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.auth-container .form input:focus {
    outline: none;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.15rem rgba(13,110,253,0.15);
}

.auth-container .form .form-row {
    display: flex;
    gap: 0.5rem;
}

.auth-container .form button {
    padding: 0.7rem 0.95rem;
    background: linear-gradient(180deg,#1f6fe8 0%,#0b5ed7 100%);
    background-color: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(11,94,215,0.18);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

.auth-container .form button:active {
    transform: translateY(1px);
}

.auth-container .form .aux-links {
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:0.9rem;
    margin-top:0.25rem;
}

.auth-container a { color: #0b5ed7; }

.auth-container .alert {
    margin-bottom: 1rem;
}

.auth-container .alert {
    margin-bottom: 1rem;
}

/* Make the auth container responsive on very small screens */
@media (max-width: 420px) {
    .auth-container {
        width: calc(100% - 32px);
        padding: 1.25rem;
    }
}

.main-footer {
    background-color: #1f4f7b;
    color: #fff;
    text-align: center;
    padding: 1rem;
    flex-shrink: 0; /* ensure footer doesn't shrink and stays after content */
}

/* Dashboard enhancements */
.stat-card {
    display:flex;
    align-items:center;
    gap:1rem;
}
.stat-card .stat-icon {
    width:56px;
    height:56px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    box-shadow: inset 0 -6px 12px rgba(0,0,0,0.03);
    font-size:1.5rem;
}
.stat-card h3 { margin:0; }

.recent-table th { background:#f8f9fb; }
.recent-table td, .recent-table th { vertical-align: middle; }

.progress-sm { height:8px; border-radius:8px; }

.donor-details {
    max-width: 1280px;
    margin: 0 auto;
}

.donor-details .donor-details-header {
    background: linear-gradient(135deg, #0b5ed7 0%, #6f42c1 100%);
    border-radius: 1.25rem;
    padding: 1.75rem 2rem;
    box-shadow: 0 18px 38px rgba(15, 45, 80, 0.18);
    color: #fff;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.donor-details .donor-details-header h2 {
    margin: 0;
    font-size: 1.85rem;
    font-weight: 700;
}

.donor-details .donor-details-header .donor-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.donor-details .donor-details-header .btn {
    padding: 0.55rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
}

.donor-details .donor-details-header .btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.donor-details .donor-details-header .btn-outline-danger {
    color: #ffe0e0;
    background: rgba(255, 107, 107, 0.08);
}

.donor-details .donor-details-header .btn-outline-danger:hover {
    background: rgba(255, 107, 107, 0.18);
}

.donor-details-grid {
    margin-top: 2rem;
}

.donor-details .card {
    border: 0;
    border-radius: 1.25rem;
    background: linear-gradient(145deg, #ffffff 0%, #f4f8fc 100%);
    box-shadow: 0 16px 32px rgba(18, 50, 86, 0.12);
    /* transition: transform 0.2s ease, box-shadow 0.2s ease; */
}

.donor-details .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 40px rgba(18, 50, 86, 0.16);
}

.donor-details .card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.donor-details .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f4f7b;
    margin-bottom: 0.5rem;
}

.donor-details label {
    font-weight: 600;
    color: #4b5c68;
    font-size: 0.9rem;
}

.donor-details .form-control-plaintext {
    border-radius: 0.9rem;
    background: rgba(31, 79, 123, 0.08);
    padding: 0.45rem 0.85rem;
    color: #1b2a3a;
    font-weight: 600;
}

.donor-details textarea.form-control-plaintext {
    min-height: 3.5rem;
    line-height: 1.5;
    background: rgba(31, 79, 123, 0.06);
    white-space: pre-wrap;
}

.donor-details .card .row {
    gap: 0.5rem 0;
}

.donor-details .btn-primary {
    border-radius: 999px;
    padding: 0.7rem 1.8rem;
    border: 0;
    background: linear-gradient(135deg, #1f4f7b 0%, #0b5ed7 100%);
    box-shadow: 0 12px 24px rgba(13, 94, 215, 0.18);
}

.donor-details .btn-primary:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #1f4f7b 100%);
}

.donor-list {
    max-width: 1280px;
    margin: 0 auto;
}

.donor-list-header {
    background: linear-gradient(135deg, #0d6efd 0%, #6f42c1 100%);
    border-radius: 1.25rem;
    padding: 1.75rem 2rem;
    color: #fff;
    box-shadow: 0 18px 38px rgba(15, 45, 80, 0.18);
    gap: 1.5rem;
}

.donor-list-heading {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.donor-list-label {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
}

.donor-list-heading h2 {
    color: #fff;
    font-size: 1.85rem;
    font-weight: 700;
}

.donor-list-actions .btn {
    border-radius: 999px;
    padding: 0.55rem 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.36);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
}

.donor-list-actions .btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.donor-list-actions .btn.btn-primary {
    border: 0;
    background: linear-gradient(135deg, #1f4f7b 0%, #0b5ed7 100%);
    box-shadow: 0 12px 24px rgba(13, 94, 215, 0.18);
}

.donor-list-actions .btn.btn-primary:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #1f4f7b 100%);
}

.donor-table-card {
    margin-top: 2rem;
    background: #ffffff;
    border-radius: 1.25rem;
    box-shadow: 0 16px 32px rgba(18, 50, 86, 0.12);
    overflow: hidden;
}

.donor-table {
    margin: 0;
}

.donor-table thead th {
    border: 0;
    padding: 1rem 1.25rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #4a5f72;
    background: linear-gradient(180deg, #f8fafb 0%, #f3f6fb 100%);
    font-weight: 700;
    border-bottom: 2px solid #e2e8f0;
}

.donor-table tbody td {
    border-top: 1px solid #e8ecf1;
    padding: 1rem 1.25rem;
    vertical-align: middle;
    font-size: 0.9rem;
}

.donor-table tbody tr {
    transition: background-color 0.12s ease;
}

.donor-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(13, 110, 253, 0.04) 0%, rgba(13, 110, 253, 0.02) 100%);
}

.donor-manager-badge {
    background: rgba(13, 110, 253, 0.12);
    color: #0b5ed7;
    font-weight: 600;
    padding: 0.45rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
}

.donor-table .badge {
    font-weight: 600;
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 0.4rem;
    text-transform: capitalize;
}

.donor-table .badge.bg-info {
    background: linear-gradient(135deg, #0dcaf0 0%, #0ba5e9 100%) !important;
    color: #fff;
}

.donor-table .badge.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffb500 100%) !important;
    color: #000;
}

.donor-table .badge.bg-success {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%) !important;
    color: #fff;
}

.donor-table .badge.bg-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%) !important;
    color: #fff;
}

.donor-row-actions .btn {
    border-radius: 999px;
    padding: 0.4rem 1.1rem;
}

.donor-email {
    font-weight: 600;
}

.donor-empty {
    font-size: 0.95rem;
    color: #7c8fa3;
}

.donor-table td.fw-semibold.text-primary {
    color: #0d6efd !important;
    font-weight: 700;
}

.donor-table tbody td.text-muted {
    color: #7c8fa3 !important;
    font-size: 0.9rem;
}

.donor-table tfoot tr {
    background: linear-gradient(90deg, #f8fafb 0%, #f3f6fb 100%);
    border-top: 2px solid #e2e8f0;
    font-weight: 700;
    font-size: 0.95rem;
}

.donor-table tfoot td {
    padding: 1.25rem;
    color: #1f4f7b;
}

.dashboard-overview {
    max-width: 1280px;
    margin: 0 auto;
}

.dashboard-hero {
    background: linear-gradient(135deg, #1f4f7b 0%, #0b5ed7 100%);
    border-radius: 1.5rem;
    padding: 2rem 2.25rem;
    color: #fff;
    box-shadow: 0 22px 44px rgba(18, 50, 86, 0.2);
    gap: 1.5rem;
}

.dashboard-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}


.dashboard-hero-copy h2 {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
}

.dashboard-subtitle {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
}

.dashboard-quick-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    box-shadow: 0 12px 28px rgba(18, 50, 86, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-quick-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(18, 50, 86, 0.22);
}

.dashboard-quick-actions .btn.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.dashboard-quick-actions .btn.btn-light {
    background: #fff;
    color: #1f4f7b;
}

.dashboard-quick-actions .btn.btn-light:hover {
    color: #0b5ed7;
}

.dashboard-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.85);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.dashboard-stat-card {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.8rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.12);
    color: #0b5ed7;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.stat-icon-bubble {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 12px 26px rgba(18, 50, 86, 0.18);
}

.stat-icon-bubble i {
    line-height: 1;
}

.stat-icon-bubble.icon-donors {
    background: linear-gradient(135deg, #1f8ef1 0%, #0b5ed7 100%);
}

.stat-icon-bubble.icon-managers {
    background: linear-gradient(135deg, #34c38f 0%, #0ba36b 100%);
}

.stat-icon-bubble.icon-recent {
    background: linear-gradient(135deg, #ffa94d 0%, #fd7e14 100%);
}

.dashboard-stat-value {
    font-size: 2.35rem;
    font-weight: 700;
    color: #1f2a37;
}

.dashboard-stat-meta {
    color: #5c6d7c;
    font-size: 0.92rem;
}

.stat-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.85rem;
    font-weight: 600;
    color: #0b5ed7;
}

.stat-link i {
    transition: transform 0.18s ease;
}

.stat-link:hover i {
    transform: translateX(4px);
}

.dashboard-stats .card {
    border: 0;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 16px 30px rgba(18, 50, 86, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-stats .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 45px rgba(18, 50, 86, 0.16);
}

.dashboard-panel {
    border: 0;
    border-radius: 1.25rem;
    box-shadow: 0 18px 38px rgba(18, 50, 86, 0.14);
}

.dashboard-panel .card-body {
    padding: 2rem;
}

.dashboard-table {
    margin: 0;
}

.dashboard-table thead th {
    border: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
    color: #5c6d7c;
    background: #f3f6fb;
    border-bottom: 1px solid rgba(23, 50, 77, 0.06);
}

.dashboard-table tbody td {
    border-top: 1px solid rgba(23, 50, 77, 0.08);
    padding: 1rem 0.75rem;
}

.dashboard-table tbody tr:hover {
    background: rgba(13, 110, 253, 0.05);
}

.recent-donor-cell {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.recent-donor-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.24) 0%, rgba(13, 110, 253, 0.6) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.15rem;
    box-shadow: 0 10px 22px rgba(18, 50, 86, 0.18);
}

.recent-donor-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.recent-donor-name {
    font-weight: 600;
    color: #1f2a37;
}

.recent-donor-number {
    font-size: 0.82rem;
    color: #6b7b88;
    letter-spacing: 0.02em;
}

.recent-donor-email {
    font-weight: 600;
}

.recent-donor-date {
    font-weight: 600;
    color: #4c5b68;
}

.dashboard-panel .btn-outline-primary {
    border-radius: 999px;
    padding: 0.45rem 1.2rem;
}

@media (max-width: 992px) {
    .dashboard-hero {
        align-items: stretch;
    }

    .dashboard-quick-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .dashboard-overview {
        padding: 0 1.25rem;
    }

    .dashboard-hero {
        padding: 1.75rem 1.5rem;
    }

    .dashboard-stat-value {
        font-size: 2rem;
    }

    .dashboard-panel .card-body {
        padding: 1.5rem;
    }
}

.add-donor {
    max-width: 1280px;
    margin: 0 auto;
}

.add-donor-header {
    background: linear-gradient(135deg, #6f42c1 0%, #0b5ed7 100%);
    border-radius: 1.5rem;
    padding: 2.25rem 2.5rem;
    color: #fff;
    box-shadow: 0 24px 48px rgba(18, 50, 86, 0.22);
    gap: 1.75rem;
    margin-bottom: 2rem;
}

.add-donor-heading {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.add-donor-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
}

.add-donor-heading h2 {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
}

.add-donor-subtitle {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.98rem;
}

.add-donor-actions .btn {
    border-radius: 999px;
    padding: 0.65rem 1.7rem;
    font-weight: 600;
    box-shadow: 0 12px 26px rgba(11, 94, 215, 0.18);
}

.add-donor-actions .btn.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.add-donor-feedback .alert {
    margin-bottom: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 12px 24px rgba(31, 79, 123, 0.1);
}

.add-donor-card {
    border: 0;
    border-radius: 1.5rem;
    box-shadow: 0 18px 42px rgba(18, 50, 86, 0.16);
    background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
}

.add-donor-card-body {
    padding: 2.5rem;
}

.add-donor-form .form-control,
.add-donor-form textarea {
    border-radius: 0.85rem;
    border: 1px solid rgba(31, 79, 123, 0.18);
    background: rgba(31, 79, 123, 0.04);
    padding: 0.6rem 0.85rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.add-donor-form .form-select {
    border-radius: 0.85rem;
    border: 1px solid rgba(31, 79, 123, 0.18);
    background-color: rgba(31, 79, 123, 0.04);
    padding: 0.6rem 1.5rem 0.6rem 0.85rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.add-donor-form .form-control:focus,
.add-donor-form .form-select:focus,
.add-donor-form textarea:focus {
    border-color: #6f42c1;
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.18);
    background: #fff;
}

.add-donor-form .form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 0.25rem;
    border: 2px solid rgba(31, 79, 123, 0.35);
    cursor: pointer;
    margin-top: 0.15rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.add-donor-form .form-check-input:checked {
    background-color: #6f42c1;
    border-color: #6f42c1;
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.15);
}

.add-donor-form .actions .btn {
    border-radius: 999px;
    padding: 0.6rem 1.5rem;
}

.add-donor-form .btn-secondary {
    background: rgba(31, 79, 123, 0.12);
    border: none;
    color: #1f4f7b;
}

@media (max-width: 768px) {
    .dashboard-hero {
        padding: 1.75rem;
    }

    .dashboard-hero-copy h2 {
        font-size: 1.6rem;
    }

    .dashboard-quick-actions {
        width: 100%;
    }

    .dashboard-quick-actions .btn {
        flex: 1 1 100%;
    }

    .add-donor-header {
        padding: 1.75rem;
    }

    .add-donor-heading h2 {
        font-size: 1.6rem;
    }

    .add-donor-actions {
        width: 100%;
        margin-top: 1.25rem;
    }

    .add-donor-actions .btn {
        flex: 1 1 100%;
    }

    .add-donor-card-body {
        padding: 1.75rem;
    }
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 0.5rem;
    background: rgba(15, 68, 136, 0.06);
    border-radius: 1rem;
    border: 1px solid rgba(15, 68, 136, 0.08);
}

.tabs button {
    position: relative;
    cursor: pointer;
    padding: 0.75rem 1.8rem;
    min-height: 46px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid rgba(15, 68, 136, 0.12);
    background: linear-gradient(135deg, #ffffff 0%, #f0f6ff 100%);
    color: #1f4f7b;
    box-shadow: 0 10px 22px rgba(18, 50, 86, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.tabs button::before {
    content: attr(data-step);
    display: inline-flex;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: rgba(15, 68, 136, 0.12);
    color: #1f4f7b;
    font-weight: 700;
    font-size: 0.9rem;
}

.tabs button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(18, 50, 86, 0.18);
}

.tabs button.active {
    background: linear-gradient(135deg, #0b5ed7 0%, #6f42c1 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 18px 36px rgba(13, 94, 215, 0.22);
}

.tabs button.active::before {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .tabs button {
        transition: none;
    }
}
.auth-body .col-lg-4 > .text-muted.small {
    color: #fff !important;
    opacity: 0.85; /* Slightly transparent so it's not too harsh */
}

.managers {
    max-width: 1280px;
    margin: 0 auto;
}

.managers-header {
    background: linear-gradient(135deg, #0b5ed7 0%, #1f4f7b 100%);
    border-radius: 1.5rem;
    padding: 2.25rem 2.5rem;
    color: #fff;
    box-shadow: 0 24px 48px rgba(18, 50, 86, 0.22);
    gap: 1.75rem;
}

.managers-heading {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.managers-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
}

.managers-heading h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.managers-subtitle {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.98rem;
}

.managers-actions .btn {
    border-radius: 999px;
    padding: 0.65rem 1.6rem;
    font-weight: 600;
    box-shadow: 0 12px 26px rgba(11, 94, 215, 0.18);
}

.managers-feedback .alert {
    border-radius: 1rem;
    box-shadow: 0 12px 24px rgba(31, 79, 123, 0.12);
}

.managers-card {
    border: 0;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
    box-shadow: 0 18px 42px rgba(18, 50, 86, 0.16);
}

.managers-card h3 {
    font-weight: 700;
    color: #1f4f7b;
}

.managers-form .form-control {
    border-radius: 0.85rem;
    border: 1px solid rgba(31, 79, 123, 0.18);
    background: rgba(31, 79, 123, 0.05);
}

.managers-form .btn {
    border-radius: 999px;
    padding: 0.55rem 1.4rem;
}

.managers-list-header h3 {
    color: #1f4f7b;
    font-weight: 700;
}

.managers-count-pill {
    background: rgba(11, 94, 215, 0.12);
    color: #0b5ed7;
    font-weight: 600;
    padding: 0.55rem 1.25rem;
}

.managers-table-card {
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 16px 32px rgba(18, 50, 86, 0.14);
    overflow: hidden;
}

.managers-table thead th {
    border: 0;
    padding: 1rem 1.25rem;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #5c6d7c;
    background: #f3f6fb;
}

.managers-table tbody td {
    border-top: 1px solid rgba(31, 79, 123, 0.08);
    padding: 1rem 1.25rem;
}

.managers-table tbody tr:hover {
    background: rgba(13, 110, 253, 0.08);
}

.managers-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b5ed7 0%, #4991ff 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
}

.managers-region {
    background: rgba(15, 68, 136, 0.12);
    color: #1f4f7b;
    font-weight: 600;
    padding: 0.45rem 1rem;
}

.managers-row-actions .btn {
    border-radius: 999px;
    padding: 0.4rem 1.1rem;
}

.managers-pagination .pagination .page-link {
    border-radius: 999px !important;
    margin: 0 0.15rem;
    padding: 0.4rem 0.9rem;
}

.managers-pagination .pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #0b5ed7 0%, #6f42c1 100%);
    border: none;
}

@media (max-width: 768px) {
    .managers-header {
        padding: 1.75rem;
    }

    .managers-heading h2 {
        font-size: 1.6rem;
    }

    .managers-actions {
        width: 100%;
        margin-top: 1.25rem;
    }

    .managers-actions .btn {
        flex: 1 1 100%;
    }

    .managers-card {
        margin-top: 1.5rem;
    }
}

/* Multi-step form compact tweaks */
.multi-step .form-label {
    font-weight: 600;
    font-size: 0.875rem; /* Slightly smaller label */
    color: #495057;
    margin-bottom: 0.3rem;
}

.multi-step .form-control,
.multi-step .form-select,
.multi-step textarea {
    padding: 0.55rem 0.9rem; /* More comfortable padding */
    border-radius: 8px; /* Softer corners */
    border: 1px solid #ced4da;
    background-color: #f8f9fa; /* Subtle background color */
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.multi-step .form-control:focus,
.multi-step .form-select:focus,
.multi-step textarea:focus {
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.multi-step .form-check-label {
    font-weight: normal; /* Keep checkbox labels at normal weight */
}

.multi-step .actions .btn { padding: .5rem 1rem; }


.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 6px;
}

.detail-grid h3 {
    margin-top: 0;
}
.custom-modal {
  max-width: 100%; /* Adjust as needed */
  width: 35%;
}
.btn-success,
.btn-outline-success {
  --bs-btn-color: #0077cc;
  --bs-btn-border-color: #0077cc;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #0077cc;
  --bs-btn-hover-border-color: #0077cc;
  --bs-btn-focus-shadow-rgb: 0, 119, 204;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #0077cc;
  --bs-btn-active-border-color: #0077cc;
  --bs-btn-disabled-color: #0077cc;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #0077cc;
  --bs-gradient: none;
}
/* icon */
 .date-wrapper { position: relative; }
    .date-wrapper input { padding-right: 40px !important; }
    .date-wrapper .date-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.6;
}
.date-wrapper .date-icon:hover { opacity: 1; }

.add-donor-form .form-control.input-date {
  background-image: url('https://cdn-icons-png.flaticon.com/512/747/747310.png') !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 18px !important;
  padding-right: 44px !important; 
}
.toast-msg {
    background: #dc3545; /* red */
    color: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 10px;
    animation: fadeIn 0.3s ease;
    }
/* Remove Bootstrap invalid red exclamation icon */
.form-control.is-invalid {
    background-image: none !important;
}

/* Remove any custom error icon if present */
.field-error::before {
    content: "" !important;
    display: none !important;
}
/* keep toolbar controls aligned on a single row on desktop */
.donor-table-toolbar-top form {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: nowrap;            /* single row on larger screens */
  white-space: nowrap;
}

/* make the search input compact */
.donor-table-toolbar-top form .flex-grow-1 {
  flex: 0 0 280px;              /* compact fixed search width */
  max-width: 320px;
  min-width: 180px;
}

/* align each small control (date inputs, buttons) */
.donor-table-toolbar-top form > div,
.donor-table-toolbar-top form > button,
.donor-table-toolbar-top form > a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
}

/* narrow date inputs so they sit on the same line */
.donor-table-toolbar-top input[type="date"].form-control-sm,
.donor-table-toolbar-top input[type="text"].form-control-sm {
  min-width: 120px;
  padding: 6px 10px;
  height: 38px;
}

/* ensure filter/clear buttons are vertically centered and compact */
.donor-table-toolbar-top .btn-sm {
  height: 38px;
  padding: 0 0.7rem;
}

/* keep the "Show Entries" box aligned to the right but on same line */
.donor-rows-per-page {
  margin-left: 8px; /* small gap from toolbar */
  align-self: center;
  flex: 0 0 auto;
}

/* responsive: let controls wrap on narrow screens */
@media (max-width: 768px) {
  .donor-table-toolbar-top form {
    flex-wrap: wrap;            /* allow vertical stacking on mobile */
  }
  .donor-table-toolbar-top form .flex-grow-1,
  .donor-table-toolbar-top input[type="date"].form-control-sm {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }
  .donor-rows-per-page {
    margin-left: 0;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
  }
}
.edit-donation,
.delete-donation {
    border-radius: 999px !important;
}

.dropdown-menu-custom {
    display: none;
    position: absolute;
    background: linear-gradient(90deg, #63449bff 60%);
    color: #fff;
    border: 1px solid rgba(13, 110, 253, 0.18);
    padding: 8px 0;
    z-index: 10;
    min-width: 160px;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 36, 64, 0.18);
}

.dropdown-hover:hover .dropdown-menu-custom {
    display: block;
}

.dropdown-menu-custom a {
    display: block;
    padding: 8px 15px;
    text-decoration: none;
    color: white;
    white-space: nowrap;
    font-weight: 600;
}

.dropdown-menu-custom a:hover {
    background: rgba(13, 110, 253, 0.08);
}