:root {
    --sidebar-width: 196px;
    --shell-navy: #1a2636;
    --shell-coral: #F05A50;
}

.scrim {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 38, 54, .45);
    z-index: 90;
}
.scrim.on { display: block; }

.sidebar {
    width: var(--sidebar-width);
    background: var(--shell-navy);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 10px calc(12px + env(safe-area-inset-bottom, 0px));
}

.logo-section {
    padding: 6px 4px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-img { max-width: 72px; height: auto; object-fit: contain; }

.user-profile-section {
    padding: 8px;
    margin: 0 2px 12px;
    background: rgba(255,255,255,.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
}
.user-avatar-large {
    width: 32px;
    height: 32px;
    background: var(--shell-coral);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}
.user-details { flex: 1; min-width: 0; }
.user-name { font-size: 12px; font-weight: 650; color: #fff; margin-bottom: 2px; }
.user-role { font-size: 10px; color: rgba(255,255,255,.7); font-weight: 500; }

.sidebar-menu { padding: 0 2px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.menu-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    color: rgba(255,255,255,.82);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    text-decoration: none;
    min-height: 40px;
    box-sizing: border-box;
}
.menu-item i { width: 16px; font-size: 13px; margin-right: 8px; }
.menu-item { transition: background .18s ease, color .18s ease, transform .18s ease; }
.menu-item:hover { background: rgba(255,255,255,.1); color: #fff; }
.menu-item.active { background: var(--shell-coral); color: #fff; }
.menu-item.active i { color: #fff; }
.menu-item.logout:hover { background: rgba(240,90,80,.22); color: #ffd4d0; }

.main,
.main-content { margin-left: var(--sidebar-width); background: #ffffff; }

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-110%);
        transition: transform .22s ease;
        width: min(84vw, 260px);
        padding-left: calc(10px + env(safe-area-inset-left, 0px));
    }
    .sidebar.active { transform: translateX(0); }
    .main,
    .main-content { margin-left: 0; }
}
