
/* Sidebar */
#sidebar {
    min-width: 250px;
    max-width: 250px;
    min-height: 100vh;
    background: #343a40;
    color: white;
    transition: all 0.3s;
    position: fixed;
    z-index: 1;
    overflow-y: auto;
    height: 100vh; /* Full height */
}

#sidebar.active {
    margin-left: -250px;
}

#sidebar .sidebar-header {
    padding: 20px;
}

#sidebar ul.components {
    padding: 20px 0;
    border-bottom: 1px solid #47748b;
}

#sidebar ul p {
    padding: 10px;
    text-align: center;
}

#sidebar ul li a {
    padding: 10px;
    font-size: 1.1em;
    display: block;
    color: white;
}

#sidebar ul li a:hover {
    background-color: #4c5f70;
}

#sidebar ul li.active > a, a[aria-expanded="true"] {
    background-color: #4c5f70;
}

#sidebar .toggle-btn {
    display: none;
}

/* Page Content */
#content {
    width: calc(100% - 250px);
    margin-left: 250px;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    #content {
        width: 100%;
        margin-left: 0;
    }

    #sidebar {
        margin-left: -250px;
    }

    #sidebar.active {
        margin-left: 0;
    }
}

/* Navbar */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.navbar .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

.navbar .btn {
    background-color: #007bff;
    color: #fff;
    border: none;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    width: calc(100% - 250px);
    background-color: #f8f9fa;
    padding: 10px 0;
    text-align: center;
    border-top: 1px solid #ccc;
}

@media (max-width: 768px) {
    .footer {
        width: 100%;
    }
}

/* Toggle Sidebar Button */
#sidebarCollapse {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 15px;
    margin: 10px;
    cursor: pointer;
}

#sidebarCollapse:hover {
    background-color: #0056b3;
}
