/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Sidebar Styles */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    background-color: #343a40;
    color: #ffffff;
    transition: width 0.3s ease;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
}

#sidebar.collapsed {
    width: 0;
    overflow: hidden;
}

/* Sidebar Header */
.sidebar-header {
    background-color: #495057;
    padding: 1rem;
    border-bottom: 1px solid #6c757d;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Sidebar Links */
.sidebar-content a {
    color: #ffffff;
    text-decoration: none;
    display: block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.sidebar-content a:hover {
    background-color: #495057;
}

/* Active Sidebar Link */
#sidebar .nav-link.active {
    background-color: #495057;
    border-radius: 5px;
}

#sidebar .nav-link i {
    margin-right: 10px;
}

/* Submenu Styles */
.submenu {
    display: none;
    padding-left: 20px;
}

.submenu.show {
    display: block;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    z-index: 1030;
    transition: left 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
}

.navbar-nav .nav-link {
    color: #333;
}

.navbar-nav .nav-link.active {
    color: #007bff;
}

/* Navbar Toggler (Mobile) */
.navbar-toggler {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1100;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    min-width: 200px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
}

.dropdown-item i {
    margin-right: 8px;
}

/* Page Content Wrapper */
#page-content-wrapper {
    margin-left: 250px;
    padding: 1rem;
    padding-top: 70px;
    transition: margin-left 0.3s ease;
}

#page-content-wrapper.collapsed {
    margin-left: 0;
}

.main-content {
    padding: 1rem;
}

/* Responsive Styles */
@media (max-width: 767px) {
    #sidebar {
        width: 0;
        overflow: hidden;
        position: fixed;
        height: 100%;
    }

    #page-content-wrapper {
        margin-left: 0;
    }

    #sidebar.collapsed {
        width: 250px;
    }

    #page-content-wrapper.collapsed {
        margin-left: 250px;
    }

    .navbar-toggler {
        display: block;
    }
}

@media (min-width: 768px) {
    #sidebar {
        width: 250px;
    }

    #page-content-wrapper.collapsed {
        margin-left: 0;
    }

    .navbar-toggler {
        display: none;
    }
}
