/* ============================================================
   Onesown Blazor Components – Tabs
   Abhängigkeit: main.css
   ============================================================ */

/* ── Kopfleiste ── */
.oo-tabs__header {
    border-bottom: var(--oo-border-width) solid var(--oo-color-border-strong);
    margin-bottom: var(--oo-space-4);
}

.oo-tabs__list {
    display: flex;
    align-items: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

/* ── Tab-Element ── */
.oo-tabs__tab {
    display: contents;
}

.oo-tabs__tab--disabled .oo-tabs__button {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Tab-Button ── */
.oo-tabs__button {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background-color: var(--oo-color-surface);
    border: var(--oo-border-width) solid var(--oo-color-border-strong);
    border-bottom: none;
    border-radius: var(--oo-radius-md) var(--oo-radius-md) 0 0;
    color: var(--oo-color-text-muted);
    cursor: pointer;
    font-size: var(--oo-font-size-md);
    margin-right: 0.125rem;
    padding: 0.45rem var(--oo-space-4);
    position: relative;
    transition: background-color var(--oo-transition), color var(--oo-transition);
    white-space: nowrap;
}

.oo-tabs__button:hover:not(:disabled) {
    background-color: var(--oo-gray-100);
    color: var(--oo-color-text);
}

.oo-tabs__button:hover:not(:disabled) .oo-tabs__icon {
    color: var(--oo-color-text);
}

/* ── Aktiver Tab ── */
.oo-tabs__button--active {
    background-color: var(--oo-color-background);
    color: var(--oo-primary);
    font-weight: 600;
    bottom: calc(var(--oo-border-width) * -1);
    z-index: 1;
}

.oo-tabs__button--active .oo-tabs__icon {
    color: var(--oo-primary);
}

/* ── Icon ── */
.oo-tabs__icon {
    font-size: 1.1rem;
    color: var(--oo-color-text-muted);
    transition: color var(--oo-transition);
    user-select: none;
}

/* ── Inhalt ── */
.oo-tabs__content {
    min-height: 2rem;
}
