/* ============ SIDEBAR OVERLAY ============ */



.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============ SIDEBAR ============ */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 385px;
    height: 100vh;
    background-color: #FFFFFF;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    transform: translateX(0);
}

/* ============ SIDEBAR HEADER ============ */

.sidebar-header {
    width: 100%;
    height: 146px;
    background-color: #A3B18A;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    position: relative;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-menu-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #EDE0D4;
    cursor: pointer;
    transition: transform 0.2s ease;
}



.sidebar-menu-icon:hover {
    transform: scale(1.1);
}

.sidebar-menu-icon svg {
    width: 100%;
    height: 100%;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-close-sidebar {
    width: auto;
    height: auto;
    background: none;
    border: none;
    font-size: 48px;
    color: #2b2b2b;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: transform 0.2s ease;
}

.btn-close-sidebar:hover {
    transform: scale(1.1);
}

/* ============ SIDEBAR CONTENT ============ */

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 25px;
    flex: 1;
}

/* ============ SIDEBAR MENU ITEMS ============ */

.sidebar-menu-item {
    width: 100%;
    height: 52px;
    background-color: #F8F8F8;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 500;
    color: #333333;
}

.sidebar-menu-item:hover {
    background-color: #EFEFEF;
    transform: translateX(5px);
}

.sidebar-menu-item:active {
    background-color: #E0E0E0;
}

.sidebar-item-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.sidebar-menu-item-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

/* ============ MOBILE HAMBURGER BUTTON ============ */

.btn-menu {
    display: flex;
    flex-direction: column;
    gap: 7px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 0;
    position: relative;
    z-index: 1;
}

.btn-menu span {
    width: 76px;
    height: 7px;
    background-color: #EDE0D4;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.btn-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(12px, 12px);
    background-color: #FFFFFF;
}

.btn-menu.active span:nth-child(2) {
    opacity: 0;
    background-color: #FFFFFF;
}

.btn-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(10px, -10px);
    background-color: #FFFFFF;
}

/* ============ RESPONSIVE DESIGN ============ */

@media (max-width: 768px) {
    .sidebar {
        width: 85%;
        max-width: 385px;
    }

    .sidebar-content {
        padding: 20px;
    }

    .sidebar-menu-item {
        height: 48px;
        padding: 0 15px;
        gap: 12px;
        margin-bottom: 12px;
    }

    .sidebar-menu-item-text {
        font-size: 14px;
    }

    .sidebar-item-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
        max-width: none;
    }

    .sidebar-menu-item {
        height: 44px;
        font-size: 14px;
    }
}

/* ============ SIDEBAR ANIMATION HELPERS ============ */

.sidebar-transition {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
