/* ══════════════════════════════════════
   WORKOUTSESSION — SIDEBAR NAVIGATION
   Global CSS (no Blazor scoping)
   ══════════════════════════════════════ */

/* ── SIDEBAR CONTAINER ── */
.ws-sidebar {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #1E1E1E;
    border-right: 1px solid #2A2A2A;
}

/* ── BRAND / LOGO ── */
.ws-nav-brand {
    padding: 20px 18px 18px;
    border-bottom: 1px solid #2A2A2A;
    flex-shrink: 0;
}

.ws-nav-logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #E5E7EB !important;
    text-decoration: none !important;
    display: block;
    line-height: 1;
}

.ws-nav-logo span {
    color: #5FA8D3;
}

/* ── NAV LINKS SECTION ── */
.ws-nav-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 12px 10px;
    gap: 2px;
    overflow-y: auto;
    min-height: 0;
}

/* Tous les <a> dans les liens nav */
.ws-nav-links a {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 10px !important;
    border-radius: 10px !important;
    color: #9CA3AF !important;
    text-decoration: none !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    transition: all 0.15s !important;
    border: 1px solid transparent !important;
    line-height: 1 !important;
}

.ws-nav-links a:hover {
    color: #E5E7EB !important;
    background: #2A2A2A !important;
    border-color: transparent !important;
}

.ws-nav-links a.active {
    color: #5FA8D3 !important;
    background: rgba(95,168,211,0.15) !important;
    border-color: rgba(95,168,211,0.25) !important;
}

/* Icônes dans les liens */
.ws-nav-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.8;
}

.ws-nav-links a.active .ws-nav-icon {
    opacity: 1;
}

/* ── FOOTER : user + logout ── */
.ws-nav-footer {
    padding: 14px 10px;
    border-top: 1px solid #2A2A2A;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.ws-nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
}

.ws-nav-user--link {
    text-decoration: none !important;
    border-radius: 8px;
    transition: background .15s;
    flex: 1;
    min-width: 0;
}

.ws-nav-user--link:hover {
    background: var(--subtle, #2a2a32);
}

.ws-nav-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(95,168,211,0.15);
    border: 1px solid rgba(95,168,211,0.3);
    color: #5FA8D3;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ws-nav-email {
    font-size: 11px;
    color: #9CA3AF;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    font-family: 'Barlow', sans-serif;
}

.ws-nav-logout {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 10px 12px !important;
    background: transparent !important;
    border: 1px solid #2A2A2A !important;
    border-radius: 10px !important;
    color: #9CA3AF !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.15s !important;
    line-height: 1 !important;
}

.ws-nav-logout:hover {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
    background: rgba(239,68,68,0.08) !important;
}

/* ══ MOBILE TOPBAR ══ */
.ws-topbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 52px;
    background: #1E1E1E;
    border-bottom: 1px solid #2A2A2A;
    position: sticky;
    top: 0;
    z-index: 200;
    flex-shrink: 0;
}

.ws-topbar-logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #E5E7EB !important;
    text-decoration: none !important;
    line-height: 1;
}

.ws-topbar-logo span {
    color: #5FA8D3;
}

.ws-hamburger {
    background: #2A2A2A;
    border: 1px solid #2A2A2A;
    border-radius: 8px;
    color: #E5E7EB;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    padding: 0;
}

.ws-hamburger:hover {
    border-color: #5FA8D3;
    color: #5FA8D3;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 640px) {
    .ws-topbar {
        display: flex;
    }

    .ws-sidebar {
        display: none;
        position: fixed;
        top: 52px;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 199;
        height: auto;
        overflow-y: auto;
        border-right: none;
        border-top: 1px solid #2A2A2A;
    }

    .ws-sidebar.ws-sidebar--open {
        display: flex;
    }

    .ws-nav-brand {
        display: none;
    }
}
