/* ── Sidebar Shell ── */
.edw-sb {
    width: 250px;
    min-width: 250px; /* Prevents any squishing */
    background: #14181F; 
    display: flex;
    flex-direction: column;
    flex-shrink: 0;      
    height: 100vh;
    max-height: 100vh;   
    position: relative; 
    
    /* FORCE the outer shell to never scroll */
    overflow: hidden !important; 
    
    background-image: linear-gradient(to bottom, rgba(20,24,31,1) 70%, rgba(12,18,32,1) 100%);
}

/* ── BRUTE FORCE SCROLLBAR HIDING (Applies to sidebar and all children) ── */
.edw-sb, 
.edw-sb * {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE and Edge */
}
.edw-sb::-webkit-scrollbar, 
.edw-sb *::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* ── Profile Block ── */
.edw-sb-profile {
    padding: 24px 16px 20px;
    text-align: center;
    border-bottom: 1px solid #2A2D35;
    flex-shrink: 0;
}
.edw-sb-av {
    width: 54px; height: 54px;
    border-radius: 50%;
    background: #E8622C;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700; font-size: 22px;
    margin: 0 auto 12px;
}
.edw-sb-name  { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.edw-sb-email { color: #9CA3AF; font-size: 12px; margin-bottom: 12px; }
.edw-sb-badge {
    display: inline-block;
    background: #10B981; color: #fff;
    font-size: 10px; font-weight: 700;
    padding: 4px 10px; border-radius: 20px;
    font-family: 'DM Mono', monospace; letter-spacing: .05em;
}
.edw-sb-badge.free { background: #374151; color: #9CA3AF; }
.edw-sb-acct {
    display: block; margin-top: 14px;
    padding: 8px 0; border-radius: 6px;
    border: 1px solid #374151; color: #D1D5DB;
    font-size: 12px; text-align: center; text-decoration: none;
    transition: 0.2s;
}
.edw-sb-acct:hover { background: #374151; color: #fff; }

/* ── Nav ── */
.edw-sb-nav { 
    flex: 1; 
    padding: 16px 12px; 
    overflow-y: auto !important; 
}

.edw-sb-grp  { margin-bottom: 20px; }

/* Labels */
.edw-sb-lbl  {
    font-size: 11px; 
    font-weight: 700; 
    color: #94A3B8; 
    text-transform: uppercase; 
    letter-spacing: 0.08em;
    padding: 0 12px; 
    margin-bottom: 10px;
    font-family: 'DM Mono', monospace;
}

.edw-sb-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; margin-bottom: 2px;
    border-radius: 8px; color: #9CA3AF;
    font-size: 13.5px; font-weight: 500; text-decoration: none;
    transition: 0.2s;
    outline: none !important; /* Kills the white focus ring */
}
.edw-sb-nav a:hover { background: #1F2937; color: #fff; }

/* ACTIVE GREEN PILL */
.edw-sb-nav a.on {
    background: #10B981;
    color: #fff;
    outline: none !important;
}
.edw-sb-nav a.on svg { stroke: #fff; opacity: 1; }
.edw-sb-nav a svg    { flex-shrink: 0; opacity: .75; }

/* ── Bottom Sections ── */
.edw-sb-support { margin-top: 6px !important; border-top: 1px solid #2A2D35 !important; padding-top: 12px !important; }
.edw-sb-help-badge { margin-left: auto; font-size: 9px; font-weight: 700; background: rgba(74,144,217,.15); color: #4A90D9; padding: 2px 6px; border-radius: 4px; }

/* Logout Button */
.edw-sb-logout { 
    margin-top: 16px; 
    padding: 0; 
}
.edw-sb-logout a { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 10px 12px; 
    border-radius: 8px; 
    color: #F87171; 
    background: rgba(239, 68, 68, 0.1); 
    font-size: 13.5px; 
    font-weight: 600;
    text-decoration: none; 
    transition: all 0.2s; 
    outline: none !important;
}
.edw-sb-logout a:hover { 
    background: #EF4444; 
    color: #fff; 
}
.edw-sb-logout a svg {
    stroke: #F87171;
    transition: stroke 0.2s;
}
.edw-sb-logout a:hover svg {
    stroke: #fff;
}

.edw-sb-legal { padding: 12px 20px; border-top: 1px solid #2A2D35; display: flex; flex-wrap: wrap; flex-shrink: 0; }
.edw-sb-legal a { font-size: 10px; color: #6B7280; font-family: 'DM Mono', monospace; text-decoration: none; }
.edw-sb-legal a:hover { color: #10B981; }
.edw-sb-legal-dot { color: #374151; margin: 0 6px; font-size: 10px; }

.edw-sb-logo { padding: 12px 20px 20px; display: flex; align-items: center; gap: 8px; font-family: 'DM Mono', monospace; font-weight: 600; font-size: 13px; flex-shrink: 0; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .edw-sb { width: 60px; min-width: 60px; }
    .edw-sb-name, .edw-sb-email, .edw-sb-badge, .edw-sb-acct,
    .edw-sb-nav a span, .edw-sb-lbl, .edw-sb-logo span,
    .edw-sb-logout a span, .edw-sb-help-badge, .edw-sb-legal { display: none; }
    .edw-sb-nav a, .edw-sb-logout a { justify-content: center; padding: 12px 0; }
    .edw-sb-profile { padding: 16px 6px; }
    .edw-sb-av { margin: 0 auto; width: 40px; height: 40px; font-size: 16px; }
    .edw-sb-logout { margin-top: 10px; }
}