
.sidebar {
    position: fixed;
    top: 0;
    left: -250px; 
    width: 230px;
    height: 100vh;
    background-color: #3a7b44;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 100px;
    transition: left 0.3s ease;
    z-index: 99;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.15);
}

.sidebar.active {
    left: 0; 
}


.toggle-btn {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background-color: #2f6b38;
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    z-index: 100;
    padding: 10px 12px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left 0.3s ease, background-color 0.3s ease;
}


.sidebar.active + .toggle-btn {
    left: 230px; 
}


.toggle-btn:hover {
    background-color: #26532b;
}

.toggle-btn.active i {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}


.main-content {
    margin-left: 0;
    transition: margin-left 0.3s ease;
}

.main-content.active {
    margin-left: 230px;
}


.main-header {
    transition: margin-left 0.3s ease;
    margin-left: 0;
}


.main-header.active {
    margin-left: 230px;
}
