/* Layout */
#layout {
    min-height: 100vh;
}

/* Sidebar */
#sidebar {
    width: 250px;
    background: #fff;
    border-right: 1px solid #e0e0e0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    transition: 0.3s ease;
    z-index: 1051;
}

#sidebar.collapsed {
    width: 70px;
}

#sidebar.collapsed .nav-link span {
    display: none;
}

/* Mobile */
@media (max-width: 768px) {
    #sidebar {
        transform: translateX(-100%);
    }

    #sidebar.active {
        transform: translateX(0);
        box-shadow: 0 0 20px rgba(0,0,0,0.3);
    }
}

/* Content */
.content {
    margin-left: 250px;
    transition: 0.3s ease;
}

.content-expanded {
    margin-left: 70px;
}

@media (max-width: 768px) {
    .content {
        margin-left: 0 !important;
    }
}

/* Overlay */
#overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    top: 0;
    left: 0;
    z-index: 1050;
    display: none;
}

#overlay.active {
    display: block;
}

/* Navbar */
.navbar-custom {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

/* Scrollbar */
#sidebar::-webkit-scrollbar {
    width: 6px;
}
#sidebar::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.25);
    border-radius: 10px;
}
