/* ==========================================================================
   TABS
   ========================================================================== */
.tabs {
    margin-top: 1rem;
}

.tab-list {
    display: flex;
    background-color: var(--input-bg);
    border-radius: var(--radius);
    padding: 0.25rem;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.tab-button {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: calc(var(--radius) - 2px);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-bottom: 2px solid transparent; /* Prevent layout shift */
}

.tab-button:hover {
    color: var(--text);
    background-color: rgba(0, 0, 0, 0.03);
}

.tab-button.active {
    background-color: var(--bg-card);
    color: var(--primary-readable);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    border-bottom: 2px solid var(--primary);
}

html[data-theme="dark"] .tab-button.active {
    background-color: var(--bg-secondary);
    /* Or a lighter dark */
    color: var(--primary-readable);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid var(--primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

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