body {
            background: #f4f5f7;
        }

        .avatar1 {
            width: 70px;
            height: 70px;
            color: #fff;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 24px;
            font-weight: bold;
            margin: 0 auto 25px;
        }

        .login-card {
            max-width: 420px;
            border-radius: 12px;
            box-shadow: 0px 4px 15px rgba(0,0,0,0.1);
        }

        .login-btn {
            background: #0d1b2a;
            border: none;
        }

        .login-btn:hover {
            background: #152235;
        }
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #f8fafc;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #F3EDD5;
    --border-color: #e5e7eb;
    --text-muted: #6b7280;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1),
        0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
        0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    background-color: var(--light-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

html,
body {
    height: 100%;
    width: 100%;
}

.sidebar {
    min-height: 100vh;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(180deg, #033C20 0%, #033C20 100%);
    border-right: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    overflow: hidden;
    display: flex;
    /* Explicit width so collapsed state can shrink properly */
    width: 250px;
}

.sidebar.collapsed .sidebar-text {
    display: none;
}

.sidebar.collapsed .sidebar-brand-text {
    display: none;
}

.sidebar.collapsed .user-details {
    display: none;
}

.sidebar.collapsed .user-name,
.sidebar.collapsed .user-role {
    display: none;
}

/* Shrink sidebar width on collapse for desktop/tablet */
.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed .logout-btn .sidebar-text {
    display: none;
}

.main-content {
    margin-left: 250px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
    width: calc(100% - 250px);
}

.main-content.expanded {
    margin-left: 70px;
    width: calc(100% - 70px);
}

/* Ensure proper spacing when collapsed */
.sidebar.collapsed .sidebar-nav {
    padding: 1rem 0.25rem;
}

.sidebar.collapsed .sidebar-link {
    padding: 0.75rem 0.5rem;
    margin: 0.25rem 0;
    justify-content: center;
}

.sidebar.collapsed .sidebar-link i {
    margin-right: 0;
}

.sidebar.collapsed .sidebar-footer {
    padding: 0.5rem;
}

.sidebar.collapsed .user-info {
    padding: 0.5rem;
    justify-content: center;
}

.sidebar.collapsed .user-avatar {
    margin-right: 0;
}

.sidebar.collapsed .logout-btn {
    padding: 0.5rem;
    justify-content: center;
}

.sidebar-header {
    padding: 1.5rem 2.5rem;
    border-bottom: 1px solid var(--border-color);
   background:
    #033C20;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    color: white;
}

.sidebar-brand-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 1.5rem;
}

.sidebar-collapse-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    z-index: 10;
    position: relative;
}

.sidebar-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.sidebar.collapsed .sidebar-collapse-btn i {
    transform: rotate(180deg);
}

.sidebar.collapsed .sidebar-collapse-btn {
    background: rgba(255, 255, 255, 0.3);
}

.sidebar-nav {
    padding: 1rem 0.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #033C20;
}

.sidebar-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.875rem 1rem;
    display: flex;
    align-items: center;
    border-radius: 12px;
    margin: 0.25rem 0;
    transition: all 0.2s ease;
    font-weight: 500;
    position: relative;
}

.sidebar-link:hover {
    background: linear-gradient(
        135deg,
        #FFB400
    );
    color: white;
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.sidebar-link.active {
    background: linear-gradient(
        135deg,
       #FFB400
    );
    color: white;
    box-shadow: var(--shadow-md);
}

.sidebar-link.active::before {
    content: "";
    position: absolute;
    left: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #FFB400;
    border-radius: 0 2px 2px 0;
}

.sidebar-link i {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
    margin-right: 0.75rem;
}

.sidebar-footer {
    padding: 1rem;
    /* border-top: 1px solid var(--border-color); */
    background: var(--secondary-color);
    background-color: #033C20;
}

.user-info {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--accent-color) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    margin-right: 0.75rem;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.875rem;
    margin: 0;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

.logout-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
    border: none;
    color: white;
    padding: 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.navbar {
    background: #F3EDD5;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    padding: 0.75rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    margin-right: 1rem;
    cursor: pointer;
    position: relative;
}

.sidebar-toggle:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: scale(1.05);
}

.sidebar-toggle:active {
    transform: scale(0.95);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.user-dropdown {
    position: relative;
}

.user-dropdown-btn {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    font-weight: 500;
    min-width: 160px;
}

.user-dropdown-btn:hover {
    background: var(--secondary-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.user-dropdown-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--accent-color) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 200px;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.required::after {
    content: " *";
    color: var(--danger-color);
    font-weight: 600;
}

.card-hover:hover {
    transform: translateY(-4px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
}

.stat-card {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--primary-dark) 100%
    );
    color: white;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    min-height: 120px;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.stat-card .card-body {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
}

.stat-card .text-xs {
    font-size: 0.75rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-card .h5 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-card-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
}
.stat-card-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #ef4444 100%);
}

.stat-card-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
}

.stat-card-info {
    background: linear-gradient(135deg, var(--accent-color) 0%, #0891b2 100%);
}

.table-responsive {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.table {
    width: 100%;
    margin-bottom: 0;
}

.card {
    width: 100%;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

.col,
.col-1,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-10,
.col-11,
.col-12,
.col-auto,
.col-lg,
.col-lg-1,
.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-lg-9,
.col-lg-10,
.col-lg-11,
.col-lg-12,
.col-lg-auto,
.col-md,
.col-md-1,
.col-md-2,
.col-md-3,
.col-md-4,
.col-md-5,
.col-md-6,
.col-md-7,
.col-md-8,
.col-md-9,
.col-md-10,
.col-md-11,
.col-md-12,
.col-md-auto,
.col-sm,
.col-sm-1,
.col-sm-2,
.col-sm-3,
.col-sm-4,
.col-sm-5,
.col-sm-6,
.col-sm-7,
.col-sm-8,
.col-sm-9,
.col-sm-10,
.col-sm-11,
.col-sm-12,
.col-sm-auto,
.col-xl,
.col-xl-1,
.col-xl-2,
.col-xl-3,
.col-xl-4,
.col-xl-5,
.col-xl-6,
.col-xl-7,
.col-xl-8,
.col-xl-9,
.col-xl-10,
.col-xl-11,
.col-xl-12,
.col-xl-auto {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.btn-action {
    padding: 0.375rem 0.5rem;
    margin: 0 0.125rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-action:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.form-floating > label {
    padding: 1rem 0.75rem;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--accent-color) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}
.avatar1 {
    width: 40px;
    height: 40px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}
.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
}

.avatar-lg {
    width: 60px;
    height: 60px;
    font-size: 1.25rem;
}

/* Sidebar tooltip positioning */
.sidebar-link .tooltip-text {
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 10px;
    bottom: auto;
    z-index: 1001;
}

.sidebar-link .tooltip-text::after {
    top: 50%;
    left: -5px;
    margin-top: -5px;
    border-color: transparent var(--dark-color) transparent transparent;
}

/* Show tooltips only when sidebar is collapsed */
.sidebar:not(.collapsed) .sidebar-link .tooltip-text {
    display: none;
}

.sidebar.collapsed .sidebar-link .tooltip-text {
    display: block;
}

/* Button tooltip positioning */
.btn-action .tooltip-text {
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
}

.btn-action .tooltip-text::after {
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-color: var(--dark-color) transparent transparent transparent;
}

/* Dark theme styles */
[data-bs-theme="dark"] {
    --light-color: #111827;
    --secondary-color: #1f2937;
    --border-color: #374151;
    --text-muted: #9ca3af;
    --dark-color: #f9fafb;
}

[data-bs-theme="dark"] .sidebar {
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
}

[data-bs-theme="dark"] .navbar {
    background: #1f2937;
    border-color: #374151;
}

[data-bs-theme="dark"] .user-dropdown-btn {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

[data-bs-theme="dark"] .user-dropdown-btn:hover {
    background: #4b5563;
    border-color: var(--primary-color);
}

/* Pagination Styles */
.pagination {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pagination .page-item {
    margin: 0;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    margin: 0;
    line-height: 1.25;
    color: var(--primary-color);
    text-decoration: none;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.2s ease;
    min-width: 40px;
    height: 40px;
    font-weight: 500;
}

.pagination .page-link:hover {
    z-index: 2;
    color: white;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.pagination .page-item.active .page-link {
    z-index: 3;
    color: white;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.pagination .page-item.disabled .page-link {
    color: var(--text-muted);
    background-color: var(--light-color);
    border-color: var(--border-color);
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination .page-item.disabled .page-link:hover {
    color: var(--text-muted);
    background-color: var(--light-color);
    border-color: var(--border-color);
    transform: none;
    box-shadow: none;
}

.pagination .page-link i {
    font-size: 0.875rem;
}

/* Pagination Info */
.pagination-info {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.125rem;
    }

    .pagination .page-link {
        padding: 0.375rem 0.5rem;
        min-width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }

    .pagination .page-link i {
        font-size: 0.75rem;
    }

    .d-flex.justify-content-between.align-items-center {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .pagination .page-link {
        padding: 0.25rem 0.375rem;
        min-width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 250px !important;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .main-content.expanded {
        margin-left: 0 !important;
        width: 100% !important;
    }

}

/* Backdrop when sidebar is open on mobile */
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 999;
    display: none;
}

.sidebar-backdrop.show { display: block; }

/* Mobile filter toggle button placement */
.filter-toggle {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
}

.filter-icon {
    background: transparent;
    border: none;
    color: var(--primary-color);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0;
}

.filter-icon:hover {
    background: var(--secondary-color);
}

@media (max-width: 576px) {

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

@media (min-width: 1200px) {
    .main-content {
        width: calc(100% - 250px);
    }

    .main-content.expanded {
        width: calc(100% - 70px);
    }
}

@media (min-width: 1400px) {
    .container-fluid {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}
@font-face {
    font-family: "SF Pro";
    src: url("/fonts/SF-Pro.otf"); /* Update your actual path */
}

.custom-title {
    font-family: "SF Pro", sans-serif;
    font-weight: 800;           /* Closest valid weight to 858 */
    font-style: italic;
    font-size: 20px;
    line-height: 1;             /* 100% */
    text-transform: uppercase;
    letter-spacing: 0;
    color: #044F24;
}
 .summary-card {
        background: #ffffff;
        border: 2px solid #000000; /* dark border like screenshot */
        border-radius: 14px;
        padding: 18px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        transition: 0.2s;
    }
    .summary-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    }
    .summary-title {
        font-size: 14px;
        color: #666;
        margin-bottom: 6px;
    }
    .summary-value {
        font-size: 26px;
        font-weight: bold;
        margin: 2px 0;
    }
    .summary-green {
        color: #0c7a35;
        font-size: 14px;
    }
    .has-sub .submenu {
        display: none;
        padding-left: 20px;
    }
    
    .has-sub:hover .submenu {
        display: block;
    }
    
    .submenu-link {
        transition: transform .2s ease;
        display: block;
        padding: 6px 10px;
    }
    
    .submenu-link:hover {
        transform: scale(1.04);
    }
    li::marker {
        content: "";
    }