div:focus {
    outline: none !important;
    box-shadow: none !important;
}
/* Center the container */
.logocontainer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Keyframe animation to rotate the image */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Apply the animation to the image */
#rotated-image {
    animation: rotate 5s linear infinite; /* Change the duration as needed */
}


.sidebar .offcanvas-body {
    background: transparent;
}

/* Navigation links */
.sidebar .nav-link {
    color: #cbd5e1 !important; /* Slate-300 */
    font-weight: 500;
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    transition: 0.25s ease-in-out;
}

    /* Hover effect */
    .sidebar .nav-link:hover {
        background: rgba(255, 255, 255, 0.08);
        transform: translateX(4px);
    }

    /* Active link */
    .sidebar .nav-link.active {
        background: linear-gradient(135deg, #2563eb, #1e40af) !important;
        color: #fff !important;
        box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
        transform: translateX(4px);
    }

    /* Icons spacing */
    .sidebar .nav-link i {
        font-size: 1rem;
        opacity: 0.85;
        width: 22px;
    }

/* Section titles */
.sidebar-heading {
    color: #94a3b8;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 1.2rem 0 0.5rem 0.4rem;
}

/* Collapse menu style */
#sidebarMenu .collapse .nav-link {
    font-size: 0.90rem;
}

    #sidebarMenu .collapse .nav-link:hover {
        background: rgba(255,255,255,0.07);
    }

/* Dropdown arrow rotation */
a[data-bs-toggle="collapse"] .fa-chevron-down {
    transition: transform 0.3s ease;
}

a[data-bs-toggle="collapse"][aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

/* Divider look */
hr.my-3 {
    border-color: rgba(255,255,255,0.10);
}

/* Sign-out modern style */
.nav-link i.fa-sign-out {
    color: #f87171 !important;
}

/* Sign-out hover */
.nav-link[href="#"]:hover {
    background: rgba(248, 113, 113, 0.2) !important;
}


.navbar {
    background: #0f172a !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

    .navbar a,
    .navbar .text-white {
        font-weight: 600;
        letter-spacing: 0.3px;
    }

    /* Hamburger button modern look */
    .navbar .nav-link i.fa-bars {
        font-size: 1.3rem;
    }

/* Sticky improvement */
header.navbar {
    backdrop-filter: blur(6px);
}


@media (max-width: 768px) {
    .sidebar {
        background: #0f172a;
    }

    #sidebarMenu {
        background: #0f172a;
    }

    .offcanvas-header {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}

.sidebar {
    min-height: 100% !important;
    height: 100% !important;
    display: flex;
    flex-direction: column;
}

/* Ensure offcanvas inside also stretches */
#sidebarMenu {
    height: 100%;
}

    #sidebarMenu .offcanvas-body {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

/* Desktop (MD and above): full height sidebar */
@media (min-width: 768px) {
    .sidebar {
        min-height: 100% !important;
        height: 100% !important;
        display: flex;
        flex-direction: column;
    }

    #sidebarMenu {
        height: 100%;
    }

        #sidebarMenu .offcanvas-body {
            height: 100%;
            display: flex;
            flex-direction: column;
        }
}

/* Mobile (below MD): auto height (default) */
@media (max-width: 767px) {
    .sidebar {
        height: auto !important;
        min-height: auto !important;
    }

    #sidebarMenu,
    #sidebarMenu .offcanvas-body {
        height: auto !important;
    }
}

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f3f4f6;
}

.login-card {
    background: white;
    border-radius: 16px;
    padding: 2.2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.10);
    width: 100%;
    max-width: 420px;
}

.brand-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #111827;
}

.login-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1.5rem;
}

.form-floating .form-control {
    border-radius: 12px !important;
    padding: 1rem !important;
}

.btn-modern {
    border-radius: 12px;
    font-size: 1.1rem;
    padding: 0.9rem;
    font-weight: 600;
}

.dashboard-container {
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: 0.2s ease;
}

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    }

.stat-title {
    font-size: 14px;
    color: #6c757d;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    margin-top: 5px;
}

.red {
    color: #dc3545 !important;
}

.green {
    color: #28a745 !important;
}

.blue {
    color: #0d6efd !important;
}

.orange {
    color: #fd7e14 !important;
}

/* Quick Links */
.quick-links {
    margin-bottom: 25px;
}

.quick-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}

.quick-btn {
    background: #f8f9fa;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: 0.2s ease;
    width: 100%;
    text-align: left;
}

    .quick-btn:hover {
        background: #e9ecef;
        transform: translateY(-4px);
    }

/* Recent Activity */
.recent-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.recent-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .recent-list li {
        padding: 8px 0;
        font-size: 15px;
        border-bottom: 1px solid #f1f1f1;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .recent-list li:last-child {
            border-bottom: none;
        }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.e-grid .e-headercell {
    background-color: #212529 !important;
    color: white !important;
    font-weight: 600;
}

.e-grid .e-pager {
    background-color: #f8f9fa !important;
    border-top: 2px solid #dee2e6 !important;
}

.e-grid .e-pagercontainer {
    background-color: #f8f9fa !important;
}

.e-breadcrumb {
    margin-bottom: 1rem;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid #dee2e6;
    background: #0f172a; /* Deep navy modern color */
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
}

    /* Ensure the offcanvas body takes full height */
    .sidebar .offcanvas-body {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

/* Make the main content area take up remaining space */
main {
    min-height: 100vh;
    padding-top: 20px;
}

/* Container adjustments */
.container-fluid {
    padding: 0;
}

.row {
    margin: 0;
}

/* Header adjustments */
.navbar.sticky-top {
    z-index: 1030;
}

/* Scrollbar styling for sidebar */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

    .sidebar::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

/* Desktop view - make sidebar fixed height */
@media (min-width: 768px) {
    .sidebar {
        position: fixed;
        top: 56px; /* Height of navbar */
        bottom: 0;
        left: 0;
        z-index: 100;
        padding: 0;
        height: calc(100vh - 56px);
    }

    main {
        margin-left: 0;
        padding-top: 20px;
    }
}

/* Mobile view */
@media (max-width: 767.98px) {
    .sidebar {
        position: relative;
        height: auto;
    }
}

.navbar {
    will-change: transform;
    transform: translateZ(0);
    background: rgb(2, 110, 159) !important; /* removes backdrop-filter flicker */
    backdrop-filter: none !important;
}

/* 2. Add a tiny gap so hover doesn't touch scrollbar area */
.navbar {
    margin-bottom: 2px;
}

/* Fix horizontal scrollbar in sidebar */
.sidebar,
#sidebarMenu,
#sidebarMenu .offcanvas-body {
    overflow-x: hidden !important;
}

    /* Prevent child elements from expanding wider than the sidebar */
    .sidebar * {
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* Remove padding/margins that cause overflow */
    .sidebar .nav-link {
        white-space: nowrap; /* keep text in one line */
    }
