/* Navigation Sidebar CSS - Left sidebar for navigation */

.nav-sidebar {
    width: 160px;
    min-width: 160px;
    height: 100vh;
    background: rgba(26, 26, 46, 0.98);
    border-right: 2px solid #4ecdc4;
    overflow-y: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
}

.nav-sidebar .tabs-group-label {
    font-size: 0.7em;
    color: #4ecdc4;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 0 4px 8px;
    margin-top: 8px;
    opacity: 0.8;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
    transition: opacity 0.2s;
}

.nav-sidebar .tabs-group-label:hover {
    opacity: 1;
}

.nav-sidebar .tabs-group-label:first-child {
    margin-top: 0;
}

.nav-sidebar .tabs-group-label .group-arrow {
    font-size: 0.8em;
    transition: transform 0.2s;
}

.nav-sidebar .tabs-group-label.collapsed .group-arrow {
    transform: rotate(0deg);
}

/* Nav sidebar tab buttons */
.nav-sidebar .tab {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #eee;
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.85em;
    transition: all 0.3s;
    text-align: left;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-sidebar .tab:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-sidebar .tab.active {
    background: #4ecdc4;
    color: #1a1a2e;
    font-weight: bold;
}

/* Override display:flex for hidden tabs (CSS specificity fix) */
.nav-sidebar .tab.hidden {
    display: none !important;
}

/* Hide group labels when all tabs in group are hidden */
.nav-sidebar .tabs-group-label.hidden {
    display: none !important;
}

/* Collapsed tabs */
.nav-sidebar .tab.group-collapsed {
    display: none;
}

.nav-sidebar .tab-icon {
    font-size: 1.1em;
    line-height: 1;
}

.nav-sidebar .tab-icon-img {
    width: 1.2em;
    height: 1.2em;
    object-fit: contain;
}

.nav-sidebar .tab-label {
    flex: 1;
}

/* Action buttons (like Rebirth) - styled differently from navigation tabs */
.nav-sidebar .tab.tab-action {
    background: rgba(155, 89, 182, 0.15);
    border-left: 3px solid #9b59b6;
}

.nav-sidebar .tab.tab-action:hover {
    background: rgba(155, 89, 182, 0.3);
}

/* Action buttons never get active state */
.nav-sidebar .tab.tab-action.active {
    background: rgba(155, 89, 182, 0.15);
    color: #eee;
    font-weight: normal;
}
