.sidebar {
    width: 230px;
    height: 100vh;
    background-color: #3a7b44; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    padding-top: 100px; 
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.1);
    z-index: 99;

    transform: translateX(-500px); /* hidden */
    transition: transform 0.1s ease; /* normal smooth slide */
}


.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar ul li a {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.sidebar ul li a:hover {
    background-color: #2f6b38;
    padding-left: 25px; 
}

.sidebar ul li a i {
    margin-right: 10px;
    font-size: 18px;
}

/* Invisible hover zone on the left */
#left-edge {
    position: fixed;
    left: 0;
    top: 0;
    width: 20px;
    height: 100vh;
    z-index: 9998;
    background: transparent;
}

.sidebar-footer {
    color: #fff;
    font-size: 12px;
    text-align: center;
    padding: 15px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-footer a {
    color: #fff;
    text-decoration: underline;
    font-weight: 500;
}

.logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #3a7b44; 
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 500;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.logout-btn i {
    margin-right: 10px;
    font-size: 18px;
}

.logout-btn:hover {
    background-color: #2f6b38; 
    padding-left: 25px;
}

.logout-container {
    margin-top: auto; 
    padding: 10px 20px;
}
