/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background-color: #2c2c2c;
    color: white;
    padding: 1rem;
    transition: transform 0.3s ease-in-out;
    transform: translateX(-100%);
    z-index: 2000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}

/* Show sidebar when class is added */
.sidebar.show {
    transform: translateX(0);
}

/* Sidebar Links */
.sidebar h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin: 0.5rem 0;
}

.sidebar a {
    color: white;
    text-decoration: none;
    padding: 0.4rem;
    display: block;
    border-radius: 4px;
    transition: background 0.2s;
}

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

/* Sidebar Toggle Button */
.toggle-btn {
    position: fixed;
    top: 15px;
    left: 15px;
    background-color: white;
    color: black;
    border: none;
    padding: 10px 15px;
    font-size: 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    z-index: 2500; /* Always above everything */
    transition: background 0.2s ease-in-out, box-shadow 0.2s ease-in-out, left 0.3s ease-in-out;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

/* Move toggle button inside the sidebar when opened */
.sidebar.show + .toggle-btn {
    left: 265px; /* Move inside the sidebar */
}

/* Button hover effect */
.toggle-btn:hover {
    background-color: #f0f0f0;
}

/* Main Content Shift */
.main-content {
    margin-left: 0;
    transition: margin-left 0.3s ease-in-out;
}

.main-content.shifted {
    margin-left: 250px;
}

/* Adjust Navbar to prevent overlap */
.navbar {
    padding-left: 60px; /* Space for sidebar button */
}
