/* =============================================
   Generic Tabs
   Shared across sets / simulations / rosters / guides / admin tabs
   ============================================= */

.app-tabs,
.sets-tabs,
.roster-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-subtle);
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
}

.app-tab,
.sets-tab,
.sim-tab,
.roster-view-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    padding: 0.82rem 1.15rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -2px;
    flex: 0 0 10.5rem;
    position: relative;
}

.app-tab:hover,
.sets-tab:hover,
.sim-tab:hover,
.roster-view-tab:hover {
    color: var(--text-primary);
    background: color-mix(in srgb, var(--bg-input) 84%, transparent);
}

.app-tab:not(.active):not(:last-child)::after,
.sets-tab:not(.active):not(:last-child)::after,
.sim-tab:not(.active):not(:last-child)::after,
.roster-view-tab:not(.active):not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 50%;
    border-right: 1px solid var(--border-subtle);
}

.app-tab.active,
.sets-tab.active,
.sim-tab.active,
.roster-view-tab.active {
    color: var(--color-tab);
    border-bottom-color: var(--color-tab);
    background: color-mix(in srgb, var(--bg-input) 84%, transparent);
}

.app-tab svg,
.sets-tab svg,
.sim-tab svg,
.roster-view-tab svg {
    flex-shrink: 0;
}

@media (max-width: 980px) {
    .app-tab,
    .sets-tab,
    .sim-tab,
    .roster-view-tab {
        flex-basis: 100%;
    }

    .app-tab:not(.active):not(:last-child)::after,
    .sets-tab:not(.active):not(:last-child)::after,
    .sim-tab:not(.active):not(:last-child)::after,
    .roster-view-tab:not(.active):not(:last-child)::after {
        display: none;
    }
}
