body {
    overflow-x: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar-wrapper {
    min-width: 250px;
    max-width: 250px;
    background: #6c757d; 
    color: #fff;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    overflow-y: auto;
}

#sidebar-wrapper .sidebar-heading {
    padding: 1rem 1.25rem;
    font-size: 1.2rem;
    font-weight: bold;
    background: #212529; 
    color: #fff;
    text-align: center;
}

#sidebar-wrapper .sidebar-heading {
    color: #d4af37; 
}

#sidebar-wrapper .sidebar-heading i {
    color: #d4af37; 
}


#sidebar-wrapper .list-group-item {
    background-color: #6c757d;
    color: #e9ecef;
    border: none;
    padding: 15px 20px;
}


#sidebar-wrapper .list-group-item:hover {
    background-color: #2d2f31 ;
    color: #fff;
    cursor: pointer;
}

#sidebar-wrapper .list-group-item.active-menu {
    background-color: #495057 !important; 
    color: #fff !important;
    font-weight: bold;
    border-left: 4px solid #fff;
}

#sidebar-wrapper .border-top.border-dark {
    border-color: #212529 !important; 
}

#sidebar-wrapper .list-group-item i.fas.fa-sign-out-alt {
    color: #dc3545; 
}

#sidebar-wrapper .list-group-item:hover i.fas.fa-sign-out-alt {
    color: #2d2f31;
}

#page-content-wrapper {
    width: 100%;
    margin-left: 250px; 
    padding: 0;
    min-height: 100vh;
    transition: margin 0.3s;
}

.navbar-light .navbar-nav .nav-link.active,
.navbar-nav .nav-link.active {
    color: #0d6efd !important;
    font-weight: bold;
    border-bottom: 2px solid #0d6efd;
}

.navbar-nav .nav-link:hover {
    color: #0b5ed7; 
}

.custom-section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    position: relative;
}

.bg-overlay {
    background-color: rgba(255, 255, 255, 0.9);
    width: 100%;
    height: 100%;
}
.bg-overlay-dark {
    background-color: rgba(0, 0, 0, 0.7);
    width: 100%;
    height: 100%;
    color: white;
}

@media (max-width: 768px) {
    #sidebar-wrapper {
        margin-left: -250px;
    }
    #page-content-wrapper {
        margin-left: 0; 
    }
    
    #wrapper.toggled #sidebar-wrapper {
        margin-left: 0;
    }
}