/* QejaConnect shared UI: icons + side menu.  Used with sidemenu.js */

/* ── ICONS ── */
.ic {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -0.15em;
    flex-shrink: 0;
}

/* ── HAMBURGER BUTTON (position is set by each page) ── */
.menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

    .menu-btn .ic {
        width: 26px;
        height: 26px;
    }

body.menu-open {
    overflow: hidden;
}

    body.menu-open .menu-btn {
        opacity: 0;
        pointer-events: none;
    }

/* ── OVERLAY ── */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 10003;
}

    .overlay.active {
        display: block;
    }

/* ── SIDE MENU ── */
.side-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    max-width: 85vw;
    height: 100%;
    background: linear-gradient(180deg, #1a1535 0%, #12102a 100%);
    z-index: 10004;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 4px 0 24px rgba(0,0,0,0.35);
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.1px;
    -webkit-font-smoothing: antialiased;
}

    .side-menu.active {
        left: 0;
    }

.side-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.side-menu-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

    .side-menu-brand img {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        object-fit: cover;
    }

    .side-menu-brand strong {
        display: block;
        color: #fff;
        font-size: 16px;
        font-weight: 600;
    }

    .side-menu-brand span {
        display: block;
        color: #9ca3af;
        font-size: 12px;
        font-weight: 400;
        margin-top: 2px;
    }

.menu-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    color: #e5e7eb;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

    .menu-close:hover {
        background: rgba(255,255,255,0.14);
    }

    .menu-close .ic {
        width: 18px;
        height: 18px;
    }

.side-menu-nav {
    flex: 1;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.menu-section {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #8b8aa8;
    padding: 16px 12px 6px;
}

.side-menu a,
.side-menu .menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0;
    color: #e5e7eb;
    text-decoration: none;
    padding: 11px 12px;
    border: none;
    border-radius: 10px;
    background: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

    .side-menu a .ic,
    .side-menu .menu-item .ic {
        width: 19px;
        height: 19px;
        color: #a5b4fc;
    }

    .side-menu a:hover,
    .side-menu .menu-item:hover {
        background: rgba(255,255,255,0.07);
        color: #fff;
    }

    .side-menu a.active-link {
        background: rgba(99,102,241,0.2);
        color: #fff;
        box-shadow: inset 3px 0 0 #818cf8;
    }

        .side-menu a.active-link .ic {
            color: #c7d2fe;
        }

.menu-label {
    flex: 1;
}

.side-menu-footer {
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}

.side-menu a.logout,
.side-menu a.logout .ic {
    color: #fca5a5;
}

.menu-badge {
    background: indigo;
    color: white;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    min-width: 20px;
    text-align: center;
    flex-shrink: 0;
}
