/* Sidebar Styling */
.vh-sidebar {
    background-color: #ffffff;
    border-right: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 0;
    margin-top: 20px;
    width: 100%;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Menu container */
.vh-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Menu items */
.vh-menu li {
    margin-bottom: 4px;
}

/* For logout at bottom */
.vh-logout {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #f2f2f2;
}

/* Menu links */
.vh-menu a {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    color: #444444;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
}

/* Improved hover styles */
.vh-menu a:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
    border-left: 3px solid #0d6efd;
    padding-left: 17px; /* Adjust padding to account for border */
}

.vh-menu a.active {
    background-color: #e7f1ff;
    color: #0d6efd;
    font-weight: 500;
    border-left: 3px solid #0d6efd;
    padding-left: 17px; /* Adjust padding to account for border */
}

/* Icons */
.vh-menu a i {
    width: 20px;
    margin-right: 12px;
    font-size: 16px;
    text-align: center;
    color: #6c757d;
    transition: all 0.2s ease;
}

.vh-menu a:hover i,
.vh-menu a.active i {
    color: #0d6efd;
}

/* Notification badge */
.vh-badge, .vh-menu a span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    background-color: #dc3545;
    color: white;
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 9px;
}

/* Responsive styles */
@media (max-width: 991.98px) {
    .vh-sidebar {
        left: -250px;
        transition: left 0.3s ease;
    }

    .vh-sidebar.show {
        left: 0;
    }

    .vh-sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }

    .vh-sidebar-overlay.show {
        display: block;
    }
}
