/* color Variables */
:root {
    --primary-color: #06245B;
    --primary-color-hover: #294984;
    --secondary-color: #71C5F3;
    --tertiary-color: #E6F6FF;
    --light-color: #F8F8F8;
    --light-dark-color: #94A3B8;
    --white-color: #FFFFFF;
    --accent: #71C5F3;
    --accent-soft: rgba(113, 197, 243, .15);
    --accent-glow: rgba(113, 197, 243, .35);
    --sidebar-width: 260px;
    --sidebar-collapsed: 72px;
    --topbar-h: 64px;
    --text-muted-sb: rgba(255, 255, 255, .45);
    --text-sb: rgba(255, 255, 255, .82);
    --transition: 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fonts - Inter  */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-VariableFont_opszwght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Italic-VariableFont_opszwght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
}

/* ======================================== Universal Classes Start======================================== */
* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif !important;
    background-color: var(--light-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color);
}

.text-primary-custom {
    color: var(--primary-color);
}

.text-secondary-custom {
    color: var(--secondary-color);
}

.bg-soft-primary-custom {
    background-color: var(--tertiary-color);
}

.bg-secondary-custom {
    background-color: var(--secondary-color);
}

/* ========= Layout css ============ */
/* Main Content area */
.main-content {
    padding-left: 10%;
    padding-right: 10%;
}

/****Right panel cards*****/
.right-cards {
    max-height: 300px;
    overflow-y: auto;
}

/***** Card Border Common******/
.card-border-soft {
    border: 1px solid #4544441a;
}

/******Text Classes*****/
.text-xs {
    font-size: .75rem;
}

.text-sm {
    font-size: .875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

/*******Custom Button********/
.btn-primary-custom {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 1px solid var(--primary-color);
    transition: all .2s ease-in-out;
    font-weight: 500;
}

    /* Hover */
    .btn-primary-custom:hover {
        background-color: var(--primary-color-hover);
        border-color: var(--primary-color-hover);
        color: var(--white-color);
    }

.bg-secondary-custom:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
}

/* Focus */
.btn-primary-custom:focus {
    border: .5px solid var(--primary-color);
}

/*******Custom Input Focus System***********/
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color-hover);
    box-shadow: 0 0 0 0;
    /* customize */
}

/* Optional: remove ugly blue outline */
.form-control:focus-visible,
.form-select:focus-visible {
    outline: none;
}

/****Custom Scrollbar*******/
.scrollbar-custom {
    overflow: auto;
    scroll-behavior: smooth;
    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: #94a3b899 transparent;
}

    /* Chrome, Edge, Safari */
    .scrollbar-custom::-webkit-scrollbar {
        width: 5px;
        height: 5px;
    }

    .scrollbar-custom::-webkit-scrollbar-track {
        background: transparent;
        margin: 4px;
        /* prevents edge sticking */
    }

    .scrollbar-custom::-webkit-scrollbar-thumb {
        background: #94a3b899;
        border-radius: 999px;
        border: 1px solid transparent;
        background-clip: padding-box;
        transition: background .2s ease;
    }

        .scrollbar-custom::-webkit-scrollbar-thumb:hover {
            background: #64748bcc;
        }

/* Apply hover ONLY when radio is NOT selected */
/*.btn-check:not(:checked)+.btn-primary-custom:hover {
  background-color: var(--primary-color-hover);
  border-color: var(--primary-color-hover);
  color: var(--white-color);
}*/

/* When selected → keep selected style even on hover */
/*.btn-check:checked+.btn-primary-custom:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white-color);
}*/

/* Pagination Custom Utils */
.custom-pagination-btn {
    color: var(--primary-color) !important;
    background-color: var(--white-color) !important;
    border-color: #dee2e6 !important;
    transition: all 0.2s ease-in-out;
}

    .custom-pagination-btn:hover {
        color: var(--white-color) !important;
        background-color: var(--primary-color) !important;
        border-color: var(--primary-color) !important;
    }

.page-item.active .custom-pagination-btn {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--white-color) !important;
}

.page-item.disabled .custom-pagination-btn {
    color: var(--light-dark-color) !important;
    pointer-events: none;
    background-color: var(--white-color) !important;
    border-color: #dee2e6 !important;
}

/* ======================================== Universal Classes End======================================== */

.top-15 {
    position: relative;
    top: -15px;
}

.campaign-card img {
    height: 170px;
    object-fit: cover;
}

/* Active tab card */
.nav-pills .nav-link.active.card {
    background-color: var(--tertiary-color);
    /* soft active bg */
    border: 2px solid var(--secondary-color) !important;
    /* primary border */
}

/* Active text */
.nav-pills .nav-link.active .fw-medium {
    color: var(--primary-color) !important;
}

/* Active icon */
.nav-pills .nav-link.active i {
    color: var(--primary-color) !important;
}

/* ============Button Tabs Start============= */
/* pill base */
.custom-pills .nav-link {
    position: relative;
    border: 1px solid #212529;
    border-radius: 8px;
    padding: 8px 18px 8px 38px;
    font-size: 14px;
    color: #212529;
    background-color: var(--light-color);
    transition: all 0.2s ease;
}

    /* radio outer circle */
    .custom-pills .nav-link::before {
        content: "";
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        width: 14px;
        height: 14px;
        border: 1px solid #212529;
        border-radius: 50%;
        background: var(--white-color);
        color: var(--light-dark-color);
    }

    /* radio inner dot (hidden by default) */
    .custom-pills .nav-link::after {
        content: "";
        position: absolute;
        left: 18px;
        top: 50%;
        transform: translateY(-50%) scale(0);
        width: 6px;
        height: 6px;
        background: var(--primary-color);
        border-radius: 50%;
        transition: 0.2s ease;
    }

    /* active state */
    .custom-pills .nav-link.active {
        background-color: var(--primary-color);
        color: var(--white-color);
        border-color: var(--primary-color);
    }

        /* show inner dot when active */
        .custom-pills .nav-link.active::after {
            transform: translateY(-50%) scale(1);
        }

        /* active border color */
        .custom-pills .nav-link.active::before {
            border-color: var(--white-color);
        }


/* ============Button Ends============= */


.border-secondary-custom {
    border-color: var(--secondary-color) !important;
}

.img-card {
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #f8f9fa;
}

    .img-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .4s ease;
    }

/* 🔥 overlay */
.img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: all .3s ease;
}

/* hover effects */
.img-card:hover .img-overlay {
    opacity: 1;
}

.img-card:hover img {
    transform: scale(1.08);
}

/* ========================== Campaign Gallery Lightbox ========================== */
.campaign-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(4px);
}

.lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1;
}

.lightbox-img {
    max-width: 80vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    display: block;
    animation: lightboxFadeIn 0.2s ease;
}

@keyframes lightboxFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 22px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    font-weight: 500;
    background: rgba(0,0,0,0.4);
    padding: 4px 16px;
    border-radius: 20px;
    z-index: 2;
}

.gallery-thumb {
    transition: box-shadow 0.2s ease;
}

.gallery-thumb:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.media-frame {
    height: 350px;
}

    .media-frame img,
    .media-frame video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* black overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
}

/* play button */
.play-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
}

.auth-container {
    max-width: 500px;
    width: 100%;
}

/* Table CSS */
.custom-table {
    min-width: 1300px;
}

    /* Large table */
    .custom-table.large {
        min-width: 1900px !important;
    }

    .custom-table th {
        background: var(--primary-color);
        color: var(--white-color);
    }

    .custom-table td {
        vertical-align: middle;
    }

/* Modal Table */
.modal-table {
    font-size: 14px;
    min-width: 700px;
}

    .modal-table th {
        background: var(--accent-soft);
        color: var(--primary-color);
        font-weight: 700;
    }

    .modal-table td {
        vertical-align: middle;
    }

        .modal-table th:first-child,
        .modal-table td:first-child {
            padding-left: 20px;
        }

.upload-box {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: 0.3s;
}

    .upload-box:hover {
        border-color: #0d6efd;
        background-color: #f8fbff;
    }

.upload-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.preview-img {
    position: relative;
}

    .preview-img img {
        width: 100%;
        height: 100px;
        object-fit: cover;
        border-radius: 8px;
    }

.remove-btn1 {
    position: absolute;
    top: 5px;
    right: 5px;
    background: red;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    cursor: pointer;
}

/* =======Benficiary css========= */
.selectable-card {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    transition: 0.3s;
    cursor: pointer;
}

    .selectable-card:hover {
        border-color: #0d6efd;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    /* Selected state */
    .selectable-card.active {
        border-color: #0d6efd;
        background-color: #f0f7ff;
        box-shadow: 0 4px 16px rgba(13, 110, 253, 0.2);
    }

.beneficiary-cards-body {
    max-height: 470px;
    overflow-y: scroll;
}

.beneficiary-cards {
    width: 120px;
    height: auto;
    object-fit: cover;
}




/* ==========================================Admin========================================= */
/* ===========Sidebar=========== */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--primary-color);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: width var(--transition), transform var(--transition);
    overflow: hidden;
}

/* Collapsed state (icon-only) */
body.sidebar-collapsed #sidebar {
    width: var(--sidebar-collapsed);
}

    body.sidebar-collapsed #sidebar .nav-label,
    body.sidebar-collapsed #sidebar .logo-text,
    body.sidebar-collapsed #sidebar .sidebar-section-title,
    body.sidebar-collapsed #sidebar .nav-badge {
        opacity: 0;
        width: 0;
        overflow: hidden;
        white-space: nowrap;
    }

    body.sidebar-collapsed #sidebar .logo-wrap {
        justify-content: center;
        padding: 0 16px;
    }

    body.sidebar-collapsed #sidebar .nav-link {
        justify-content: center;
        padding: 12px 0;
    }

        body.sidebar-collapsed #sidebar .nav-link .nav-icon {
            margin: 0;
        }

    body.sidebar-collapsed #sidebar .sidebar-section-title {
        height: 0;
        margin: 0;
        padding: 0;
    }

    body.sidebar-collapsed #sidebar .nav-link[data-bs-toggle="collapse"] .bi-chevron-down {
        display: none;
    }


/* Logo area — sticky */
.sidebar-logo {
    padding: 10px 10px 5px 10px;
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--primary-color);
    flex-shrink: 0;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    height: var(--topbar-h);
    text-decoration: none;
}

/* Scrollable nav area */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 0 24px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .12) transparent;
}

    .sidebar-nav::-webkit-scrollbar {
        width: 4px;
    }

    .sidebar-nav::-webkit-scrollbar-track {
        background: transparent;
    }

    .sidebar-nav::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, .15);
        border-radius: 4px;
    }

.sidebar-section-title {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--secondary-color);
    padding: 10px 22px 10px;
    transition: opacity var(--transition), height var(--transition), margin var(--transition), padding var(--transition);
}

.nav-item-wrap {
    padding: 1px 10px;
}

.admin-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 9px;
    color: var(--text-sb);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background var(--transition), color var(--transition), padding var(--transition);
    white-space: nowrap;
    position: relative;
}

    .admin-sidebar .nav-link:hover {
        background: rgba(255, 255, 255, .08);
        color: #fff;
    }

    .admin-sidebar .nav-link.active {
        background: var(--accent-soft);
        color: #fff;
        box-shadow: inset 3px 0 0 var(--accent);
    }

.nav-icon {
    font-size: 17px;
    flex-shrink: 0;
    width: 22px;
    text-align: center;
    transition: margin var(--transition);
}

.nav-label {
    transition: opacity var(--transition), width var(--transition);
    flex: 1;
}

.nav-badge {
    font-size: 10px;
    font-weight: 700;
    background: var(--accent);
    color: var(--primary);
    border-radius: 20px;
    padding: 1px 7px;
    transition: opacity var(--transition);
}

.admin-sidebar .nav-link[data-bs-toggle="collapse"] .bi-chevron-down {
    font-size: 11px;
    transition: transform var(--transition);
    color: var(--text-muted-sb);
}

.admin-sidebar .nav-link[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
    color: var(--accent);
}

.sub-menu {
    padding-left: 22px;
}

.admin-sidebar .sub-menu .nav-link {
    font-size: 12.5px;
    font-weight: 400;
    padding: 8px 12px;
    color: var(--text-muted-sb);
}

    .admin-sidebar .sub-menu .nav-link:hover {
        color: #fff;
    }

    .admin-sidebar .sub-menu .nav-link.active {
        color: var(--accent);
        background: transparent;
        box-shadow: none;
    }

    .admin-sidebar .sub-menu .nav-link::before {
        content: '';
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: currentColor;
        opacity: .5;
        flex-shrink: 0;
    }

    .admin-sidebar .sub-menu .nav-link.active::before {
        background: var(--accent);
        opacity: 1;
    }

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 9px;
    cursor: pointer;
    transition: background var(--transition);
}

    .sidebar-user:hover {
        background: rgba(255, 255, 255, .08);
    }

.sidebar-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-user-info .name {
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
}

.sidebar-user-info .role {
    font-size: 10.5px;
    color: var(--text-muted-sb);
}

body.sidebar-collapsed .sidebar-user-info,
body.sidebar-collapsed .sidebar-user .bi-three-dots-vertical {
    display: none;
}

body.sidebar-collapsed .sidebar-user {
    justify-content: center;
    padding: 8px;
}

body.sidebar-collapsed #sidebar:not(:hover) .nav-link .nav-label {
    display: none;
}
img.img-fluid.logo.nav-icon {
    width: 65px;
}
/*body.sidebar-collapsed #sidebar .sidebar-logo .logo-wrap .logo {
    display: none;
}*/

/* ========================== Collapse Sidebar StartTestingggggggg======================= ===== */

/* ========================== Collapse Sidebar Start======================= ===== */

body.sidebar-collapsed #sidebar:not(:hover) .collapse {
    display: block !important;
    height: auto !important;
    visibility: visible !important;
}

body.sidebar-collapsed #sidebar:not(:hover) .nav-item-wrap {
    position: relative;
}

    body.sidebar-collapsed #sidebar:not(:hover) .nav-item-wrap > .collapse {
        position: absolute;
        left: 100%;
        top: 0;
        min-width: 200px;
        background: #fff;
        border-radius: 10px;
        padding: 8px 0;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(10px);
        transition: 0.2s ease;
        z-index: 9999;
    }

        /* Show submenu on hover (collapsed mode) */
body.sidebar-collapsed #sidebar:not(:hover) .nav-item-wrap:hover > .collapse,
body.sidebar-collapsed #sidebar:not(:hover) .nav-item-wrap > .collapse:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

/* ðŸ‘‰ When sidebar is hovered (expanded) */
body.sidebar-collapsed #sidebar:hover .collapse {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* ========================Latest Sidebar collapsing hover============== */
/* ===== Hover Expand when collapsed ===== */
body.sidebar-collapsed #sidebar:hover {
  width: var(--sidebar-width);
}

/* Show hidden elements on hover */
body.sidebar-collapsed #sidebar:hover .nav-label,
body.sidebar-collapsed #sidebar:hover .logo-text,
body.sidebar-collapsed #sidebar:hover .sidebar-section-title,
body.sidebar-collapsed #sidebar:hover .nav-badge {
  opacity: 1;
  width: auto;
}

/* Fix alignment on hover */
body.sidebar-collapsed #sidebar:hover .nav-link {
  justify-content: flex-start;
  padding: 10px 12px;
}

body.sidebar-collapsed #sidebar:hover .nav-link .nav-icon {
  margin-right: 10px;
}

/* Restore logo alignment */
body.sidebar-collapsed #sidebar:hover .logo-wrap {
  justify-content: flex-start;
  padding: 0 20px;
}

/* Smooth transition */
#sidebar {
  transition: width 0.25s ease;
}

/* Default (expanded) */
.logo-full {
  display: block;
  max-width: 200px;
}

.logo-icon {
  display: none;
  max-width: 60px;
}

/* When collapsed */
body.sidebar-collapsed #sidebar .logo-full {
  display: none;
}

body.sidebar-collapsed #sidebar .logo-icon {
  display: block;
}

/* Center icon logo */
body.sidebar-collapsed #sidebar .logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

/* Hidden (mobile) */
@media (max-width: 991.98px) {
    #sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width) !important;
    }

    body.sidebar-open #sidebar {
        transform: translateX(0);
    }
}

/* Logo area â€” sticky */
.sidebar-logo {
    padding: 10px 10px 5px 10px;
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--primary-color);
    flex-shrink: 0;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    height: var(--topbar-h);
    text-decoration: none;
}

/* Scrollable nav area */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 0 24px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .12) transparent;
}

    .sidebar-nav::-webkit-scrollbar {
        width: 4px;
    }

    .sidebar-nav::-webkit-scrollbar-track {
        background: transparent;
    }

    .sidebar-nav::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, .15);
        border-radius: 4px;
    }

.sidebar-section-title {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--secondary-color);
    padding: 10px 22px 10px;
    transition: opacity var(--transition), height var(--transition), margin var(--transition), padding var(--transition);
}

.nav-item-wrap {
    padding: 1px 10px;
}

.admin-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 9px;
    color: var(--text-sb);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background var(--transition), color var(--transition), padding var(--transition);
    white-space: nowrap;
    position: relative;
}

    .admin-sidebar .nav-link:hover {
        background: rgba(255, 255, 255, .08);
        color: #fff;
    }

    .admin-sidebar .nav-link.active {
        background: var(--accent-soft);
        color: #fff;
        box-shadow: inset 3px 0 0 var(--accent);
    }

.nav-icon {
    font-size: 17px;
    flex-shrink: 0;
    width: 22px;
    text-align: center;
    transition: margin var(--transition);
}

.nav-label {
    transition: opacity var(--transition), width var(--transition);
    flex: 1;
}

.nav-badge {
    font-size: 10px;
    font-weight: 700;
    background: var(--accent);
    color: var(--primary);
    border-radius: 20px;
    padding: 1px 7px;
    transition: opacity var(--transition);
}

.admin-sidebar .nav-link[data-bs-toggle="collapse"] .bi-chevron-down {
    font-size: 11px;
    transition: transform var(--transition);
    color: var(--text-muted-sb);
}

.admin-sidebar .nav-link[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
    color: var(--accent);
}

.sub-menu {
    padding-left: 22px;
}

.admin-sidebar .sub-menu .nav-link {
    font-size: 12.5px;
    font-weight: 400;
    padding: 8px 12px;
    color: var(--text-muted-sb);
}

    .admin-sidebar .sub-menu .nav-link:hover {
        color: #fff;
    }

    .admin-sidebar .sub-menu .nav-link.active {
        color: var(--accent);
        background: transparent;
        box-shadow: none;
    }

    .admin-sidebar .sub-menu .nav-link::before {
        content: '';
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: currentColor;
        opacity: .5;
        flex-shrink: 0;
    }

    .admin-sidebar .sub-menu .nav-link.active::before {
        background: var(--accent);
        opacity: 1;
    }

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 9px;
    cursor: pointer;
    transition: background var(--transition);
}

    .sidebar-user:hover {
        background: rgba(255, 255, 255, .08);
    }

.sidebar-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-user-info .name {
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
}

.sidebar-user-info .role {
    font-size: 10.5px;
    color: var(--text-muted-sb);
}

body.sidebar-collapsed .sidebar-user-info,
body.sidebar-collapsed .sidebar-user .bi-three-dots-vertical {
    display: none;
}

body.sidebar-collapsed .sidebar-user {
    justify-content: center;
    padding: 8px;
}



/* ========================Latest Sidebar collapsing hover============== */
/* ===== Hover Expand when collapsed ===== */
body.sidebar-collapsed #sidebar:hover {
    width: var(--sidebar-width);
}

    /* Show hidden elements on hover */
    body.sidebar-collapsed #sidebar:hover .nav-label,
    body.sidebar-collapsed #sidebar:hover .logo-text,
    body.sidebar-collapsed #sidebar:hover .sidebar-section-title,
    body.sidebar-collapsed #sidebar:hover .nav-badge {
        opacity: 1;
        width: auto;
    }

    /* Fix alignment on hover */
    body.sidebar-collapsed #sidebar:hover .admin-sidebar .nav-link {
        justify-content: flex-start;
        padding: 10px 12px;
    }

        body.sidebar-collapsed #sidebar:hover .admin-sidebar .nav-link .nav-icon {
            margin-right: 10px;
        }

    /* Restore logo alignment */
    body.sidebar-collapsed #sidebar:hover .logo-wrap {
        justify-content: flex-start;
        padding: 0 20px;
    }

/* Smooth transition */
#sidebar {
    transition: width 0.25s ease;
}

/* Default (expanded) */
.logo-full {
    display: block;
    max-width: 200px;
}

.logo-icon {
    display: none;
    max-width: 60px;
}

/* When collapsed */
body.sidebar-collapsed #sidebar .logo-full {
    display: none;
}

body.sidebar-collapsed #sidebar .logo-icon {
    display: block;
}

/* Center icon logo */
body.sidebar-collapsed #sidebar .logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

/*========================================== Collapsed sidebar css end========================================== */

/* ========= OVERLAY (mobile)========== */
#sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6, 36, 91, .45);
    backdrop-filter: blur(2px);
    z-index: 1039;
}

body.sidebar-open #sidebar-overlay {
    display: block;
}

/* ===========MAIN WRAPPER========== */
#main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition);
}

body.sidebar-collapsed #main-wrapper {
    margin-left: var(--sidebar-collapsed);
}



/* ═══════════════════════════════
       TOPBAR
    ═══════════════════════════════ */
#topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: var(--topbar-h);
    background: #fff;
    border-bottom: 1px solid #e8edf7;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 12px;
    box-shadow: 0 1px 10px rgba(6, 36, 91, .06);
}

.topbar-toggle {
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    border-radius: 9px;
    color: var(--primary);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
    flex-shrink: 0;
}

    .topbar-toggle:hover {
        background: #f0f4fb;
    }




.topbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.icon-btn {
    position: relative;
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    border-radius: 9px;
    color: #4a5878;
    font-size: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

    .icon-btn:hover {
        background: #f0f4fb;
        color: var(--primary);
    }

    .icon-btn .badge-dot {
        position: absolute;
        top: 7px;
        right: 7px;
        width: 8px;
        height: 8px;
        background: #e74c3c;
        border-radius: 50%;
        border: 2px solid #fff;
    }

.topbar-profile {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 4px 10px 4px 4px;
    border-radius: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background var(--transition);
}

    .topbar-profile:hover {
        background: #f0f4fb;
    }

.profile-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-info {
    text-align: left;
}

    .profile-info .pname {
        font-size: 12.5px;
        font-weight: 600;
        color: var(--primary);
        line-height: 1.2;
    }

    .profile-info .prole {
        font-size: 10.5px;
        color: #8a97b5;
    }

/* ═══════════════════════════════
       CONTENT AREA
    ═══════════════════════════════ */
#content {
    flex: 1;
    padding: 28px 28px 20px;
}

/* Tooltip on collapsed sidebar */
body.sidebar-collapsed #sidebar .admin-sidebar .nav-link {
    position: relative;
}

/* Selected state */
.btn-check:checked + .btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
}

/* Focus state */
.btn-check:focus + .btn-primary-custom {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.donation-card {
    background: #f4f6f9;
    border-radius: 16px;
    padding: 15px;
    cursor: pointer;
    transition: 0.3s;
    border: 2px solid transparent;
    position: relative;
}

    .donation-card:hover {
        transform: translateY(-3px);
    }

.card-img {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    /* IMPORTANT */
    height: 160px;
    /* control image height */
    position: relative;
    z-index: 1; /* keep it BELOW check icon */
}


    .card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* this makes it cover */
    }

.donation-card h6 {
    margin-top: 12px;
    font-weight: 600;
}

.donation-card p {
    margin: 0;
    font-weight: 600;
    color: #1d3b6b;
}

    .donation-card p span {
        font-size: 12px;
        color: #6c757d;
        font-weight: 500;
    }

/* Active Selected Card */
.donation-card.active {
    border: 2px solid #3b5bdb;
    background: #eef2ff;
}

/* Check Icon */
.check-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #3b5bdb;
    color: white;
    font-size: 12px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999; /* force top layer */
}

.custom-hidden-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}
/* =========Consent Form ============ */
.signature-box {
    height: 150px;
    border: 2px dashed #cfd8dc;
    border-radius: 10px;
    background: #f8f9fa;
}

    .signature-box canvas {
        width: 100%;
        height: 100%;
    }

.clear-btn {
    position: absolute;
    top: 10px;
    right: 10px;
}

.img-desc-currentreq {
    height: 230px;
    object-fit: cover;
}


/*QuickGrid Custom CSS*/

/* Header background - all columns same dark blue */
.custom-table thead th {
    /*background-color: #1a2a4a !important;*/
    color: white !important;
}

    /* Inner div QuickGrid renders for column title */
    .custom-table thead th .col-title-text {
        color: white !important;
    }

    /* Sortable column button override */
    .custom-table thead th button {
        color: white !important;
        background: transparent !important;
        border: none !important;
    }

/* Hide empty rows */
.custom-table tbody tr:has(td:empty) {
    display: none !important;
}

button.btn.btn-primary-custom:active {
    background: #06245b;
    color: white;
}

input:focus, button.btn.btn-primary-custom:focus, button, .btn, textarea {
    box-shadow: none !important;
}
/* Top Donate Through Buttons Starts */
.donate-btn {
    padding: 0px 14px;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .donate-btn:hover {
        background-color: #ebebeb;
        border-color: #ccc;
    }

    .donate-btn img {
        height: 36px;
        width: auto;
        object-fit: cover;
    }

.popover-container {
    position: relative;
    display: inline-block;
}

.popover-btn {
    border-radius: 5px;
}

.popover-content {
    visibility: hidden;
    width: 250px;
    background-color: #dee2e6;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    position: absolute;
    bottom: 125%; /* above button */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

    /* Arrow */
    .popover-content::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        margin-left: -5px;
        border-width: 5px;
        border-style: solid;
        border-color: #dee2e6 transparent transparent transparent;
    }

/* Show on hover */
.popover-container:hover .popover-content {
    visibility: visible;
    opacity: 1;
}


.package-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.legend-dot {
    height: 8px;
    width: 8px;
}

.gradient-blue {
    background: linear-gradient(90deg, #2f3e5c, #6c8fdc);
}

.gradient-purple {
    background: linear-gradient(90deg, #6a2c70, #c86dd7);
}

.gradient-green {
    background: linear-gradient(90deg, #2d5f57, #4fa585);
}

.gradient-indigo {
    background: linear-gradient(90deg, #2e2a7b, #4f7bd9);
}

.container-payment {
    text-align: center;
}
/*payment recipt error */

.error-circle {
    width: 160px;
    height: 160px;
    background: #e60000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 90px;
    font-weight: bold;
    line-height: 1;
}

.message {
    font-size: 32px;
    color: #666;
    font-weight: 600;
}
/*payment recipt error  */


/*=======Sticky Action Column in list=========*/
.sticky-action {
    position: sticky;
    right: 0;
    background: #06245b;
    z-index: 2;
    white-space: nowrap;
    box-shadow: -3px 0 6px rgba(0, 0, 0, 0.1);
}

thead .sticky-action {
    background: #06245b;
    color: white;
    z-index: 5;
}


/* =======================Media Queries======================= */


/* Desktop */
@media (min-width: 1200px) {
    .main-content {
        padding-left: 10%;
        padding-right: 10%;
    }
}

@media (max-width: 991.98px) {
    #main-wrapper {
        margin-left: 0 !important;
    }
    /*Hidden (mobile) */
    #sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width) !important;
    }

    body.sidebar-open #sidebar {
        transform: translateX(0);
    }
}

/* Tablet */
@media (min-width: 768px) {
    .main-content {
        padding-left: 6%;
        padding-right: 6%;
    }
}

@media (max-width: 767.98px) {
    .profile-info {
        display: none;
    }
}
/* Mobile */
@media (max-width: 575.98px) {
    .topbar-search {
        display: none;
    }
    #content {
        padding: 18px 14px;
    }
}

@media (max-width: 991.98px) {

    #mainNavbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1050;
        background-color: var(--primary-color);
        padding: 12px 10%;
        box-shadow: 0 12px 24px rgba(6, 36, 91, 0.22);
    }


        #mainNavbar .navbar-nav {
            gap: 8px !important;
        }
}
/* CSS Upadated by Gaurav on 01-05-2026 */
/* Campaign */
.campaign-card-donor {
    background: linear-gradient(135deg, #eef4ff, #ffffff);
}

/* Requirement */
.requirement-card-donor {
    background: linear-gradient(135deg, #e8fff3, #ffffff);
}

/* Sponsorship */
.sponsorship-card-donor {
    background: linear-gradient(135deg, #fff4e6, #ffffff);
}

/* Hover effect */
.card-donor {
    transition: 0.3s;
}

    .card-donor:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    }
/* Added by Pratham for the toast (18/05/2026) */
.toast-container {
    top: 20px !important;
    bottom: unset !important;
    right: 20px !important;
    z-index: 999999 !important;
}
/*Dated 25052026*/

.custom-breadcrumb-link {
    color: #212529;
    transition: 0.3 ease-in-out;
}

    .custom-breadcrumb-link:hover {
        color: var(--primary-color);
        font-weight: 600;
    }
    /*Added on 6th july for spinner for admin donation page*/
.processing-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 25px;
}
.spinner-border {
    animation: spinner-border .85s linear infinite !important;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/*Added July 7, 2026 By Arshpreet*/
.adv-search-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease, margin-bottom 0.3s ease;
    margin-bottom: 0;
}

.adv-search-panel--open {
    grid-template-rows: 1fr;
    margin-bottom: 1rem;
}

.adv-search-inner {
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border: 1px solid #dee2f5;
    border-radius: 0.5rem;
    padding: 0;
    transition: padding 0.3s ease;
}

.adv-search-panel--open .adv-search-inner {
    padding: 1.1rem 1.25rem;
}

.adv-toggle-btn {
    transition: all 0.2s ease;
}

.adv-toggle-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
/*Added on 22nd july (17:48)*/
/* ==========Inhabitant Admission Accordion============== */
.admission-accordion .accordion-item {
    border: 1px solid #4544441a;
    border-radius: 10px;
    overflow: hidden;
}

    .admission-accordion .accordion-item + .accordion-item {
        margin-top: 14px;
    }

.admission-accordion .accordion-button,
.admission-accordion .accordion-button:not(.collapsed) {
    background-color: var(--tertiary-color);
    color: var(--primary-color);
    font-weight: 700;
    padding: 14px 20px;
    box-shadow: none;
}

    .admission-accordion .accordion-button:focus {
        box-shadow: none;
        border-color: transparent;
    }

.admission-accordion .accordion-section-sub {
    color: var(--light-dark-color);
    font-weight: 400;
}

.admission-accordion .accordion-body {
    background-color: var(--white-color);
    padding: 20px;
}

/* ==========Monthly Expenditure Summary============== */
.expenditure-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .expenditure-row .expenditure-label {
        min-width: 150px;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .expenditure-row .input-group {
        flex: 1;
    }

    .expenditure-row .remove-expenditure-item {
        flex-shrink: 0;
        line-height: 1;
    }
    /* Hide number input arrows */
    input[type="number"]::-webkit-inner-spin-button,
    input[type="number"]::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    input[type="number"] {
        -moz-appearance: textfield;
    }