/* Sidebar base */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background: #2c2c2c;
    color: #ccc;
    padding: 20px;
    overflow-y: auto;
    transition: transform 0.3s;
    transform: translateX(-100%);
    z-index: 1000;
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-title {
    text-align: center;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.sidebar a {
    display: block;
    color: #ccc;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 5px;
    transition: 0.3s;
}

.sidebar a:hover,
.sidebar a.active {
    background: #007bff;
    color: #fff;
}

/* Sidebar Dropdowns */
.sidebar-dropdown .dropdown-toggle {
    cursor: pointer;
    display: block;
    padding: 10px 15px;
    border-radius: 6px;
    position: relative;
}

.sidebar-dropdown .dropdown-toggle::after {
    content: "▼";
    float: right;
    transition: transform 0.3s;
}

.sidebar-dropdown.open .dropdown-toggle::after {
    transform: rotate(-180deg);
}

/* Push-down dropdown menus */
.sidebar-dropdown .dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 15px;
    margin-top: 5px;
}

.sidebar-dropdown.open .dropdown-menu {
    max-height: 500px; /* enough for all menu items */
}

/* Logout */
.sidebar .logout {
    margin-top: 20px;
    text-align: center;
    background: #ff4d4d;
    color: #fff !important;
    padding: 10px;
    border-radius: 6px;
}

/* Overlay for mobile */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 900;
}

.overlay.show {
    display: block;
}

/* Sidebar toggle button for mobile */
.sidebar-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
    background: #2c2c2c;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
}

.sidebar-toggle:hover {
    background: #007bff;
}

/* Responsive: show sidebar always on desktop */
@media(min-width:992px) {
    .sidebar {
        transform: translateX(0);
    }

    .overlay,
    .sidebar-toggle {
        display: none;
    }

    .main-content {
        margin-left: 260px;
    }
}

/* Company banner */
.company-banner {
    width: 100%;
    height: 400px;
    background-image: url('images/company.gif'); /* your banner image */
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}
