
.table .dropdown-menu {
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
    color: inherit;
}

.table .dropdown > a {
    font-size: 1rem;
    color: inherit;
}

.table .dropdown-menu .dropdown-item {
    padding: .25rem .75rem; 
    font-size: 0.9rem; 
}

/* ===== Sidebar Styling ===== */
#sidebar {
    background-color: #1f1f2e;
    color: #fff;
    height: 100vh;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

/* Navbar area at top */
.main-navbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

    .main-navbar .navbar-brand span {
        color: #fff;
        font-weight: 600;
        font-size: 1.2rem;
    }

/* ===== Nav items ===== */
.nav-wrapper {
    padding-top: 1rem;
}

.nav-item {
    margin-bottom: 4px;
}

.nav-link {
    color: #c7c7d9;
    padding: 0.8rem 1rem;
    margin: 0 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.25s ease-in-out;
}

    .nav-link i {
        font-size: 18px;
        margin-right: 12px;
        opacity: 0.8;
        transition: opacity 0.2s ease;
    }

    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.08);
        color: #fff;
    }

        .nav-link:hover i {
            opacity: 1;
        }

    .nav-link.active {
        background-color: #4a4ae6;
        color: #fff;
        font-weight: 600;
        box-shadow: 0 3px 8px rgba(74, 74, 230, 0.3);
    }

        /* Optional accent bar for active item */
        .nav-link.active::before {
            content: '';
            display: block;
            width: 4px;
            height: 100%;
            background-color: #00b4d8;
            border-radius: 3px;
            margin-right: 10px;
        }

/* Scrollbar */
.nav-wrapper::-webkit-scrollbar {
    width: 6px;
}

.nav-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

<style >
/* === Dashboard Card Styling === */
.stat-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 1.8rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    transition: all 0.25s ease-in-out;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    border-radius: 14px 0 0 14px;
    background: linear-gradient(180deg, #007bff, #66b3ff);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.stat-card h5 {
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 0.8rem;
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.2;
}

/* Add subtle accent line for each type */
.stat-premises::before {
    background: linear-gradient(180deg, #28a745, #8ee08e);
}

.stat-today::before {
    background: linear-gradient(180deg, #ffc107, #ffe380);
}

.stat-month::before {
    background: linear-gradient(180deg, #007bff, #66b3ff);
}

/* Equal card height fix */
.row > .col-md-4 {
    display: flex;
}

.stat-card.flex-fill {
    flex: 1;
}

/* Small devices */
@media (max-width: 768px) {
    .stat-card {
        padding: 1.2rem;
    }

        .stat-card .stat-value {
            font-size: 1.8rem;
        }
}

</style >
/* ===== Mobile Optimization ===== */
@media (max-width: 767.98px) {
    #sidebar {
        position: fixed;
        top: 0;
        left: -260px;
        width: 250px;
        height: 100%;
        z-index: 1030;
        transition: all 0.3s ease;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.4);
    }

        #sidebar.active {
            left: 0;
        }
}
