*{
    margin:0;
    padding: 0;
}


.admin-layout {
    display: flex;
    min-height: 100vh;
}


.sidebar {
    width: 260px;
    background: #4b733a; /* Main sidebar background */
    display: flex;
    flex-direction: column;
}

/* Logo Section */
.sidebar-logo {
    background: #ffffff;      /* WHITE background */
   
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-logo img {
    width: 75%;
    max-width: 180px;
}

/* Menu */
.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 4px;
}

.sidebar-menu a  {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    font-size: 20px;
    transition: background 0.3s, color 0.3s;
}

/* Hover & Active */
/* .sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #4b733a;
    color: #ffffff;
} */

/* Icons */
.sidebar-menu i {
    font-size: 18px;
    color:#abc737;
}
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: #4b733a;
    flex-shrink: 0;
    height: 100vh;
    position:fixed;
}

.main-content {
    flex: 1;
    padding: 20px;
    background: #f8f9fa;
    overflow-x: hidden;
    margin-left:18%;
}
/* ===== DESKTOP DEFAULT ===== */
.mobile-header {
    display: none;
}

/* ===== TABLET & MOBILE ===== */
@media (max-width: 991px) {

    .mobile-header {
        display: flex;
        align-items: center;
        gap: 15px;
        background: #4b733a;
        color: #fff;
        padding: 12px 16px;
        font-size: 18px;
        position: sticky;
        top: 0;
        z-index: 1100;
    }

    .menu-toggle {
        font-size: 24px;
        cursor: pointer;
    }

    .admin-layout {
        flex-direction: row;
    }

    /* Sidebar hidden */
    .sidebar {
        position: fixed;
        top: 0;
        left: -260px;
        height: 100vh;
        width: 260px;
        z-index: 1200;
        transition: left 0.3s ease;
    }

    /* Sidebar visible */
    .sidebar.active {
        left: 0;
    }

    /* Content full width */
    .main-content {
        padding: 15px;
         margin-left:0%;
    }
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 576px) {
    .sidebar {
        width: 230px;
    }
}
/* logout */

#logout{

    display: flex;
    justify-content: end;

}
#logout-btn{

    background: #4b733a;
    color: #fff;
    border-radius: 10px;
    padding: 5px;
    border: none;
}

/* Close (X) button */
.sidebar-close {
    display: none;
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 26px;
    font-weight: bold;
    color: #4b733a;
    cursor: pointer;
}

/* Show close button on mobile */
@media (max-width: 991px) {
    .sidebar {
        position: fixed;
    }

    .sidebar-close {
        display: block;
    }
}
