/* =====================================================
   CZORS SIDEBAR
===================================================== */

.czors-sidebar {
    width: 300px;
    background: linear-gradient(180deg, #101820, #050b10);
    border-right: 1px solid var(--czors-border);
    color: #fff;
    padding: 24px 18px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
}

/* =====================================================
   LOGO
===================================================== */

.czors-brand {
    font-size: 30px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 28px;
}

.czors-brand span span,
.czors-mobile-logo span {
    color: var(--czors-primary);
}

/* =====================================================
   USER PROFILE
===================================================== */

.czors-user-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 22px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--czors-border);
}

.czors-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--czors-soft-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--czors-primary);
    font-weight: 900;
    font-size: 22px;
}

.czors-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.czors-user-card h4 {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.czors-user-card p {
    margin: 4px 0;
    color: var(--czors-muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.czors-user-card small {
    display: inline-block;
    margin-top: 3px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(242,140,40,.12);
    color: var(--czors-primary);
    font-size: 11px;
    font-weight: 700;
}

/* =====================================================
   MENU HEADINGS
===================================================== */

.czors-menu p {
    margin: 24px 10px 10px;
    color: rgba(255,255,255,.42);
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

/* =====================================================
   MENU LINKS
===================================================== */

.czors-menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 6px;
    border-radius: 14px;
    color: rgba(255,255,255,.82);
    transition: all .25s ease;
    position: relative;
}

.czors-menu a svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke-width: 2.2;
    transition: .25s ease;
}

.czors-menu a span {
    flex: 1;
}

/* =====================================================
   HOVER
===================================================== */

.czors-menu a:hover {
    transform: translateX(6px);
    background: rgba(242,140,40,.12);
    color: #fff;
}

.czors-menu a:hover svg {
    color: var(--czors-primary);
    transform: scale(1.12);
}

/* =====================================================
   ACTIVE MENU
===================================================== */

.czors-menu a.active {
    background: linear-gradient(90deg, #f28c28, #c96d12);
    color: #fff;
    box-shadow: 0 12px 28px rgba(242,140,40,.28);
}

.czors-menu a.active svg {
    transform: scale(1.08);
}

/* =====================================================
   LOGOUT
===================================================== */

.czors-menu a.logout {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--czors-border);
    border-radius: 0;
    color: #ff8d8d;
}

.czors-menu a.logout:hover {
    background: rgba(239,68,68,.12);
    color: #ffb4b4;
}

/* =====================================================
   SIDEBAR TOP
===================================================== */

.czors-sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.czors-sidebar-top .czors-brand {
    margin-bottom: 0;
    text-decoration: none;
}

.czors-sidebar-close {
    display: none;
}


/* =====================================================
   SIDEBAR OVERLAY
===================================================== */

.czors-sidebar-overlay {
    display: none;
}


/* =====================================================
   MOBILE LEFT DRAWER
===================================================== */

@media (max-width: 900px) {

    body.czors-menu-is-open {
        overflow: hidden;
        touch-action: none;
    }

    .czors-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;

        width: min(84vw, 340px);
        height: 100dvh;

        z-index: 1201;

        transform: translateX(-105%);
        transition:
            transform .32s cubic-bezier(.22, 1, .36, 1),
            visibility .32s ease;

        visibility: hidden;
        box-shadow: 24px 0 60px rgba(0, 0, 0, .42);

        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .czors-sidebar.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    .czors-sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;

        width: 100%;
        height: 100%;

        padding: 0;
        border: 0;

        background: rgba(0, 0, 0, .62);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);

        z-index: 1200;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transition:
            opacity .25s ease,
            visibility .25s ease;
    }

    .czors-sidebar-overlay.is-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .czors-sidebar-close {
        width: 42px;
        height: 42px;

        border: 1px solid rgba(255, 255, 255, .12);
        border-radius: 13px;

        background: rgba(255, 255, 255, .06);
        color: #fff;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        cursor: pointer;
        flex-shrink: 0;
    }

    .czors-sidebar-close svg {
        width: 21px;
        height: 21px;
    }

    .czors-sidebar-close:hover {
        background: rgba(242, 140, 40, .14);
        border-color: rgba(242, 140, 40, .28);
        color: var(--czors-primary);
    }

    .czors-sidebar .czors-menu {
        padding-bottom: 110px;
    }

}
/* Desktop sidebar */
.czors-sidebar {
    display: flex;
}

/* Mobile drawer is hidden on desktop */
.czors-menu-drawer,
.czors-menu-drawer-overlay {
    display: none;
}

@media (max-width: 900px) {

    /* Hide desktop sidebar on mobile */
    .czors-sidebar {
        display: none !important;
    }

    /* Mobile drawer visibility is controlled by menu-drawer.css */
    .czors-menu-drawer {
        display: flex;
    }

    .czors-menu-drawer-overlay {
        display: block;
    }
}

