/* Tab styles - extracted from inline index.html */

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

.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;
}

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

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

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

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

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

/* Sub-tabs (dentro de Stats, Shop, etc) */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #4ecdc4;
}

.tab {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #eee;
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.9em;
    transition: all 0.3s;
    text-align: left;
    width: 100%;
}

/* Sidebar tabs - full width, left aligned */
.tabs-sidebar .tab,
.nav-sidebar .tab {
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

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

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

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

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

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

/* Horizontal sub-tabs inside main content */
.main-content .tabs .tab {
    width: auto;
    border-radius: 8px 8px 0 0;
    padding: 12px 24px;
    font-size: 1em;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Bloodline tab needs flex layout when active */
.tab-content.bloodline-tab.active {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 150px);
}

/* Weapon Skills tab layout when active */
.tab-content.weapon-skills-tab.active {
    display: block;
}

.stats-tab-content {
    display: none;
}

.stats-tab-content.active {
    display: block;
}

.shop-tab-content {
    display: none;
}

.shop-tab-content.active {
    display: block;
}

/* Sect Tab Content (sub-tabs) */
.sect-tab-content {
    display: none;
}

.sect-tab-content.active {
    display: block;
}
