/* ===============================
   App wrapper
================================ */
.wcs-app {
    position: relative;
}

/* ===============================
   Sidebar (desktop default)
================================ */
.wcs-sidebar {
    max-width: 262px;
    background: var(--white);
    border-radius: 16px;
    padding: 8px;
}

/* Close button (inside sidebar) */
.wcs-sidebar-close {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    margin: 8px;
    align-self: flex-end;
}

/* ===============================
   Sidebar menu
================================ */
.wcs-sidebar__menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wcs-sidebar__menu li {
    padding: 6px 14px;
    border-radius: 8px;
    transition: 0.3s ease-in-out;
    &.active{
        background-color: var(--action);
        a{
            color: var(--white);
        }
        img{
            filter: brightness(100);
        }
        &:hover{
            background-color: var(--action);
        }
    }
}

.wcs-sidebar__menu li:hover {
    background-color: var(--white-2);
}

.wcs-sidebar__menu a {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    color: var(--black-2);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ===============================
   Mobile toggle button (☰)
================================ */
.wcs-sidebar-toggle {
    display: none;
    background: var(--black-2);
    color: var(--white);
    border: none;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 6px;
}

/* ===============================
   Overlay
================================ */
.wcs-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 900;
}

/* ===============================
   Mobile behavior
================================ */
@media (max-width: 1024px) {

    /* Sidebar off-canvas */
    .wcs-sidebar {
        position: fixed;
        top: 0;
        left: -262px;
        width: 262px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    /* Sidebar open */
    .wcs-app.is-sidebar-open .wcs-sidebar {
        left: 0;
    }

    /* Show close button inside sidebar */
    .wcs-app.is-sidebar-open .wcs-sidebar-close {
        display: inline-flex;
        justify-content: flex-end;
    }
    .wcs-app.is-sidebar-open .wcs-sidebar-toggle {
        z-index: -2;
    }
    /* Mobile open button */
    .wcs-sidebar-toggle {
        display: block;
        width: 100%;
        text-align: start;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1100;
    }

    /* Overlay active */
    .wcs-app.is-sidebar-open .wcs-overlay {
        opacity: 1;
        pointer-events: auto;
    }
}
