/* ─────────────── Base Styling ─────────────── */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    overflow-x: hidden;
    background-color: #fafafa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ─────────────── Fixed Navigation Adjustments ─────────────── */
/* Add padding to main content to account for fixed navigation bar */
main {
    padding-top: 80px;
    /* offset for fixed header */
    flex: 1 0 auto;
    margin: 0;
}

@media (max-width: 768px) {
    main {
        padding-top: 0px;
    }
}

/* ─────────────── Sidebar ─────────────── */
.admin-sidebar {
    position: fixed;
    top: 35px;
    left: 0;
    height: 100vh;
    width: 250px;
    background: linear-gradient(180deg, #eef2ff, #ffffff);
    border-right: 1px solid rgba(99, 102, 241, 0.15);
    box-shadow: 12px 0 30px rgba(79, 70, 229, 0.08);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
}

.admin-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.admin-sidebar__toggle-btn {
    border: none;
    background: #ffffff;
    color: #4338ca;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(67, 56, 202, 0.25);
}

.admin-sidebar__toggle-btn:hover {
    background: #e0e7ff;
}

.admin-sidebar__logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

.admin-sidebar__section {
    padding: 0.6rem 0.4rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.12);
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.admin-sidebar__section:hover {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 12px 20px rgba(79, 70, 229, 0.08);
}

.admin-sidebar__nav {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.admin-sidebar__toggle {
    width: 100%;
    border: none;
    background: transparent;
    color: #312e81;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.35rem 0.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-sidebar__toggle:focus {
    outline: none;
    box-shadow: none;
}

.admin-sidebar__toggle i.bi {
    transition: transform 0.2s ease;
}

.collapse.show+.admin-sidebar__link {
    margin-top: 0.35rem;
}

.admin-sidebar__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.5rem;
    margin: 0.15rem 0;
    border-radius: 10px;
    color: #4b5563;
    font-size: 0.88rem;
    text-decoration: none;
}

.admin-sidebar__link span {
    flex: 1;
    text-align: left;
}

.admin-sidebar__link i {
    font-size: 1rem;
    color: #94a3b8;
}

.admin-sidebar__link:hover,
.admin-sidebar__link.active {
    background: rgba(99, 102, 241, 0.15);
    color: #4338ca;
}

.admin-sidebar__link:hover i,
.admin-sidebar__link.active i {
    color: #4338ca;
}

.admin-sidebar--collapsed,
body.admin-sidebar-collapsed .admin-sidebar {
    width: 80px;
}

.admin-sidebar--collapsed .admin-sidebar__logo,
body.admin-sidebar-collapsed .admin-sidebar__logo {
    display: none;
}

.admin-sidebar--collapsed .admin-sidebar__brand-text,
.admin-sidebar--collapsed .admin-sidebar__toggle,
.admin-sidebar--collapsed .admin-sidebar__section .admin-sidebar__toggle,
.admin-sidebar--collapsed .admin-sidebar__link span {
    display: none;
}

.admin-sidebar--collapsed .admin-sidebar__link {
    justify-content: center;
    padding: 0.45rem 0;
}

.admin-sidebar--collapsed .collapse {
    display: block !important;
}

.admin-sidebar--collapsed~.content,
body.admin-sidebar-collapsed .content {
    margin-left: 100px;
}

.admin-sidebar__footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.admin-sidebar__footer .btn {
    font-size: 0.85rem;
}

body.admin-sidebar-collapsed .admin-sidebar {
    width: 80px;
}

body.admin-sidebar-collapsed .admin-sidebar__brand-text,
body.admin-sidebar-collapsed .admin-sidebar__toggle,
body.admin-sidebar-collapsed .admin-sidebar__link span {
    display: none;
}

body.admin-sidebar-collapsed .admin-sidebar__link {
    justify-content: center;
    padding: 0.45rem 0;
}

body.admin-sidebar-collapsed .content {
    margin-left: 100px;
}

.admin-sidebar--collapsed {
    width: 80px;
}

.admin-sidebar--collapsed .admin-sidebar__brand-text,
.admin-sidebar--collapsed .admin-sidebar__toggle,
.admin-sidebar--collapsed .admin-sidebar__link span {
    display: none;
}

/* Admin table adjustments */
.admin-table th,
.admin-table td {
    font-size: 0.85rem;
    padding: 0.4rem 0.5rem;
    vertical-align: middle;
}

.admin-table .btn-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 0.2rem;
}

.admin-table .btn-icon i {
    font-size: 0.9rem;
}

/* ─────────────── Toggle Button ─────────────── */

.sidebar.collapsed #toggleSidebar {
    left: 10px;
}

#toggleSidebar {
    border: none;
    color: #6b7280;
    font-size: 22px;
    background: transparent;
    padding: 0;
}

#toggleSidebar:hover {
    color: #0f62fe;
}

/* ─────────────── Header ─────────────── */
.header {
    background-color: #2b216a;
    padding: 10px 20px;
    height: 40px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 2px solid white;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.3);
    transition: left 0.3s ease;
}

.header.expanded {
    left: 0;
}

/* ─────────────── Content ─────────────── */
.content {
    margin-left: 220px;
    padding: 12px;
    transition: margin-left 0.3s ease;
}

/* ─────────────── Main Section ─────────────── */
.main {
    padding-top: 40px;
}

/* ─────────────── Logout Button ─────────────── */
.btn-logout {
    background-color: #dc3545;
    border: none;
    padding: 10px 15px;
    font-weight: 500;
    color: #fff;
    border-radius: 25px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}

.btn-logout:hover {
    background-color: #c82333;
    transform: translateY(-1px);
}

.btn-logout:active {
    transform: scale(0.98);
    background-color: #bd2130;
}

/* ─────────────── Title ─────────────── */
.title {
    border-bottom: 2px solid #2b216a;
    font-weight: 600;
}


/* ------------Alert--------------- */

.alert-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1055;
    /* Above Bootstrap modals and other content */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    max-width: 100%;
    pointer-events: none;
    /* Allows clicks to pass through if needed */
}

.custom-alert {
    pointer-events: auto;
    /* Enables clicking on close button */
    position: relative;
    width: 300px;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    word-break: break-word;
    transition: transform 0.3s ease-in-out;
}

.custom-alert-success {
    background-color: #198754;
}

.custom-alert-error {
    background-color: #dc3545;
}

.custom-alert-warning {
    background-color: #ffc107;
    color: #212529;
}

.custom-alert-info {
    background-color: #0dcaf0;
}

.custom-alert-close {
    background: transparent;
    border: none;
    font-size: 18px;
    font-weight: bold;
    color: inherit;
    cursor: pointer;
}


/* button */

.btn.button {
    background: linear-gradient(135deg, #0d6efd, #1e90ff);
    color: #fff;
    font-weight: 500;
    margin-bottom: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.2);
    transition: all 0.3s ease;
}

.btn.button:hover {
    background: linear-gradient(135deg, #0b5ed7, #1a7de6);
    box-shadow: 0 6px 14px rgba(13, 110, 253, 0.35);
    transform: translateY(-1px);
}

.btn.button i {
    margin-right: 6px;
}

#paginationLinks {
    position: absolute;
    bottom: 50px;
    left: 60%;
    transform: translateX(-50%);
}

/* ─────────────── Compact Admin Overrides ─────────────── */
body {
    font-size: 13px;
}

.card,
.glass-card,
.hero-card,
.dashboard-hero,
.approval-hero {
    padding: 0.85rem !important;
    border-radius: 14px !important;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.1);
    background-color: #fff;
}

.stat-card {
    padding: 0.7rem !important;
    border-radius: 14px !important;
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.12);
}

.card-header,
.card-body {
    padding: 0.6rem 0.85rem !important;
    border-color: rgba(15, 23, 42, 0.06);
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.04);
    background-color: #fff;
}

.table th,
.table td,
.admin-table th,
.admin-table td {
    padding: 0.35rem 0.45rem;
    font-size: 0.8rem;
}

.container,
.container-fluid,
.container.mt-4,
.container-fluid.py-4 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

.btn,
.form-control,
.form-select {
    padding: 0.35rem 0.6rem;
    font-size: 0.85rem;
}

.content i.bi,
.main i.bi {
    font-size: 0.9rem;
}

/* ─────────────── Global Form Adjustments ─────────────── */
textarea {
    min-height: 120px !important;
    resize: vertical !important;
    overflow-y: auto !important;
}

textarea.form-control {
    min-height: 120px !important;
}

.content .display-6,
.content h2,
.content h3,
.content h4 {
    font-size: 1.15rem !important;
    line-height: 1.3;
}

.glass-card p,
.card table tr,
.glass-card table tr {
    padding: 0 !important;
}

.glass-card p,
.card-body p,
.table td,
.table th {
    font-size: 0.82rem;
}

.glass-card .badge,
.card .badge {
    .btn-gradient {
        background: linear-gradient(135deg, #0d6efd, #1e90ff);
        border: none;
        color: #fff;
    }

    .text-gradient {
        background: none;
        -webkit-text-fill-color: inherit;
    }

    .btn-outline-primary {
        border-color: #0d6efd;
        color: #0d6efd;
    }

    .btn-outline-primary:hover {
        background: #0d6efd;
        color: #fff;
    }

    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
}

/* ─────────────── Mobile Responsive ─────────────── */
@media (max-width: 767.98px) {
    .content {
        margin-left: 0;
        padding: 0.75rem;
    }

    .header {
        left: 0;
    }

    .main {
        padding-top: 90px;
    }

    body {
        font-size: 14px;
    }

    .btn-logout {
        font-size: 14px;
        padding: 8px 12px;
    }

    .mobile-nav {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        left: 0;
        height: auto;
        border-radius: 0 0 24px 24px;
        margin-bottom: 1rem;
    }

    .admin-sidebar__nav {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .admin-sidebar__section {
        min-width: 220px;
    }

    .content {
        margin-left: 0;
        padding: 0.75rem;
    }

    .hero-card,
    .glass-card,
    .dashboard-hero,
    .approval-hero {
        padding: 0.85rem;
    }

    .stat-card {
        margin-bottom: 0.5rem;
    }

    .table-responsive {
        overflow-x: auto;
    }

    .modern-table {
        min-width: 600px;
    }

    .btn.btn-lg {
        width: 100%;
    }
}

/* ─────────────── Global Scrollbar Styling (Capsule Style) ─────────────── */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #999;
    border-radius: 20px;
    border: 3px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #FFA500;
}

::-webkit-scrollbar-button {
    display: none;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #999 transparent;
}t e x t a r e a . f o r m - c o n t r o l   {   m i n - h e i g h t :   1 2 0 p x   ! i m p o r t a n t ;   r e s i z e :   v e r t i c a l   ! i m p o r t a n t ;   }  
 