body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #f8f9fa;
}

.sidebar {
    height: 100vh;
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    background: #ffffff;
    transition: all 0.3s;
    overflow-y: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

    .sidebar.collapsed {
        width: 0;
        overflow: hidden;
    }

    .sidebar a {
        color: #343a40;
        text-decoration: none;
    }

    .sidebar .nav-link:hover {
        background: #e9ecef;
    }

    .sidebar > .nav > .nav-item > .nav-link.active {
        font-weight: 500;
        border-radius: 0px 60px 60px 0px;
        color: #fff !important;
        /*background: linear-gradient(to right, #8971ea, #7f72ea, #7574ea, #6a75e9, #5f76e8);*/
        background: linear-gradient(to right, #1a5e1a, #165716, #135113, #0f4a0f, #0c430c);
        box-shadow: 0px 7px 12px 0px rgba(95, 118, 232, 0.21);
        opacity: 1;
        /*background: #556B2F;*/ /* Army Green */
        /*color: #ffffff;*/
    }

        .sidebar > .nav > .nav-item > .nav-link.active .submenu-toggle::after {
            color: #ffffff;
        }

    .sidebar .submenu .nav-link.active,
    .sidebar .nested-submenu .nav-link.active {
        color: #0d6efd; /* Bootstrap blue */
        font-weight: bold;
    }

.submenu-toggle::after {
    font-family: "Font Awesome 6 Free";
    content: "\f078";
    float: right;
    transition: transform 0.3s;
    font-weight: 900;
}

.submenu-toggle.collapsed::after {
    transform: rotate(-90deg);
}

.header {
    height: 60px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 250px;
    right: 0;
    z-index: 1000;
    transition: left 0.3s;
}

    .header.collapsed {
        left: 0;
    }

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.content {
    margin-top: 60px;
    margin-left: 250px;
    transition: margin-left 0.3s;
    padding: 20px;
}

    .content.collapsed {
        margin-left: 0;
    }

.nested-submenu {
    padding-left: 15px;
}

.sidebar .nav-link .fas {
    color: #6c757d;
}

.sidebar .nav-link:hover .fas,
.sidebar .nav-link.active .fas {
    color: inherit;
}

.header .dropdown-menu {
    margin-top: 10px !important;
}
.header .dropdowndown {
    margin-top: 18px !important;
}
.header-title-wrapper {
    flex-grow: 1; /* Allows this element to take up available space */
    min-width: 0; /* A key flexbox property to allow shrinking */
    text-align: center;
}
.nav-item .dropdown-toggle::after {
    display: none;
}
.header-title {
    font-size: 20px;
    font-weight: bold;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; /* Switched to a more standard, readable font */
    color: #343a40; /* A standard dark color for better readability */
    text-transform: uppercase;
    margin-bottom: 0; /* Removes default margin from the h1 tag */
    /* The following 3 lines prevent long text from wrapping and breaking the layout */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Adds "..." if the text is too long */
}

/* Make the title smaller on mobile devices to give more room */
@media (max-width: 768px) {
    .header-title {
        font-size: 14px;
    }
}


.card {
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

/* .card-header {
        background-color: #f8f9fc;
        border-bottom: 1px solid #e3e6f0;
    } */

.chart-area {
    position: relative;
    height: 20rem;
    width: 100%;
}

/* Icon colors */
.text-primary {
    color: #4e73df !important;
}

.text-success {
    color: #1cc88a !important;
}

.text-info {
    color: #36b9cc !important;
}

.text-warning {
    color: #f6c23e !important;
}

/* Card border colors */
.border-left-primary {
    border-left: 0.25rem solid #4e73df !important;
}

.border-left-success {
    border-left: 0.25rem solid #1cc88a !important;
}

.border-left-info {
    border-left: 0.25rem solid #36b9cc !important;
}

.border-left-warning {
    border-left: 0.25rem solid #f6c23e !important;
}

.stat-card {
    border-left: 5px solid;
    transition: transform 0.2s ease-in-out;
}

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
    }

.border-primary-custom {
    border-color: #0d6efd;
}

.border-success-custom {
    border-color: #198754;
}

.border-info-custom {
    border-color: #0dcaf0;
}

.border-danger-custom {
    border-color: #dc3545;
}


.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

    .footer-link:hover {
        color: white;
        text-decoration: underline;
    }

.icon-hover:hover {
    transform: translateY(-3px);
    transition: all 0.2s;
}

.govt-logo {
    font-weight: 700;
    font-size: 1.5rem;
}

.table-container {
    display: block;
    max-height: 400px; /* Adjust this value to control the height */
    overflow-y: auto; /* This creates the vertical scrollbar */
}



    /*Outline-btn*/
    .outline-btn {
    background: transparent;
    color: #004D40;
    border: 2px solid #004D40;
    padding: 12px 24px;
    font-size: 16px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

    /* Slide-in fill effect on hover */
    .outline-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(to right, transparent, rgba(0, 77, 64, 0.1));
        transition: all 0.4s ease;
        z-index: -1;
    }

    .outline-btn:hover {
        color: white;
        border-color: #004D40;
        box-shadow: 0 4px 8px rgba(0, 77, 64, 0.2);
    }

        .outline-btn:hover::before {
            left: 0;
            background: #004D40;
        }

    .outline-btn:active {
        transform: translateY(1px);
        box-shadow: 0 2px 4px rgba(0, 77, 64, 0.2);
    }

    .outline-btn:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(0, 77, 64, 0.3);
    }

/*Outline-btn*/
.outlinebtn-sm {
    background: transparent;
    color: #004D40;
    border: 2px solid #004D40;
    padding: 6px 12px;
    font-size: 16px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

    /* Slide-in fill effect on hover */
    .outlinebtn-sm::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(to right, transparent, rgba(0, 77, 64, 0.1));
        transition: all 0.4s ease;
        z-index: -1;
    }

    .outlinebtn-sm:hover {
        color: white;
        border-color: #004D40;
        box-shadow: 0 4px 8px rgba(0, 77, 64, 0.2);
    }

        .outlinebtn-sm:hover::before {
            left: 0;
            background: #004D40;
        }

    .outlinebtn-sm:active {
        transform: translateY(1px);
        box-shadow: 0 2px 4px rgba(0, 77, 64, 0.2);
    }

    .outlinebtn-sm:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(0, 77, 64, 0.3);
    }

/*custombtn-bg*/
.custombtn-bg {
    background: linear-gradient(to bottom, #004D40, #00382E);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

    /* Optional subtle shine effect */
    .custombtn-bg::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient( to bottom right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, 0) 100% );
        transform: rotate(30deg);
        transition: all 0.5s ease;
    }

.custombtn-bg:hover {
    background: linear-gradient(to bottom, #00695C, #004D40);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
}

    .custombtn-bg:hover::after {
        left: 100%;
    }

.custombtn-bg:active {
    background: linear-gradient(to bottom, #00382E, #00251E);
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.custombtn-bg:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 77, 64, 0.4);
}

/*custom-btn*/
.custom-btn {
    background: linear-gradient(to bottom, #004D40, #00382E);
    color: white;
    border: none;
    padding: 9px 18px;
    font-size: 16px;
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

    /* Optional subtle shine effect */
    .custom-btn::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient( to bottom right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, 0) 100% );
        transform: rotate(30deg);
        transition: all 0.5s ease;
    }

    .custom-btn:hover {
        background: linear-gradient(to bottom, #00695C, #004D40);
        transform: translateY(-3px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
    }

        .custom-btn:hover::after {
            left: 100%;
        }

    .custom-btn:active {
        background: linear-gradient(to bottom, #00382E, #00251E);
        transform: translateY(1px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
    }

    .custom-btn:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(0, 77, 64, 0.4);
    }


/* custombtn-sm Small button variant */
.custombtn-sm {
    background: linear-gradient(to bottom, #004D40, #00382E);
    color: white;
    border: none;
    padding: 8px 16px; /* Reduced padding */
    font-size: 13px; /* Smaller font */
    font-family: 'Segoe UI', sans-serif;
    font-weight: 600;
    border-radius: 6px; /* Slightly less rounded */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    height: 32px; /* Fixed height */
    line-height: 1; /* Better vertical alignment */
}

    /* Scaled-down shine effect */
    .custombtn-sm::after {
        content: '';
        position: absolute;
        top: -60%;
        left: -60%;
        width: 180%;
        height: 180%;
        background: linear-gradient( to bottom right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, 0) 100% );
        transform: rotate(30deg);
        transition: all 0.4s ease;
    }

    .custombtn-sm:hover {
        background: linear-gradient(to bottom, #00695C, #004D40);
        transform: translateY(-2px); /* Smaller lift */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

        .custombtn-sm:hover::after {
            left: 100%;
        }

    .custombtn-sm:active {
        background: linear-gradient(to bottom, #00382E, #00251E);
        transform: translateY(0);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }

    .custombtn-sm:focus {
        outline: none;
        box-shadow: 0 0 0 2px rgba(0, 77, 64, 0.4); /* Thinner focus ring */
    }

    .custombg-lightgreen {
        background-color: #e8f5e9; /* Light green background */
        color: #004D40; /* Dark green text */
        /*border: 1px solid #004D40;*/ /* Dark green border */
    }