/* ========================================
   Tabs
   ======================================== */

.tabs {
    display: flex;
    background: var(--bg-tertiary);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    position: relative;
    isolation: isolate;
}

.tab-glider {
    position: absolute;
    top: 4px;
    left: 0;
    height: calc(100% - 8px);
    background: var(--bg-primary);
    border-radius: 6px;
    z-index: 1;
    transition: transform 0.25s cubic-bezier(0.2, 0, 0.2, 1), width 0.25s cubic-bezier(0.2, 0, 0.2, 1);
    box-shadow: 0 1px 3px var(--shadow);
    pointer-events: none;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.15s ease;
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.tab-btn:hover {
    color: var(--text-secondary);
}

.tab-btn.active {
    background: transparent;
    color: var(--text-primary);
}

.tab-btn.hover-preview {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.tab-btn:focus-visible {
    outline: 2px solid var(--bar-compare);
    outline-offset: -2px;
}