/* Tabs Container */
.tabs {
    width: 100%;

}

/* Tabs Navigation */
.tabs-nav {
    position: relative;
    display: flex;
    gap: 0.5rem;
    background: #27c7d8;
    padding: 0.375rem;
    border-radius: 3px;
    margin-bottom: 2rem;
    isolation: isolate;
}

/* Tab Buttons */
.tab-button {
    width: 50% !important;
    flex: 1;
    all: unset;
    position: relative;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    border-radius: 3px;
    cursor: pointer;
    transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    white-space: nowrap;
    z-index: 1;
}

.tab-button:hover {
    color: white;
    background: #869cc5;
}

.tab-button[aria-selected="true"] {
    color: #000000;
    background: white;
}

/* Moving Indicator */
.tabs-indicator {
    position: absolute;
    top: 0.375rem;
    bottom: 0.375rem;
    left: 0;
    border-radius: 6px; /* Calculated as var(--tab-border-radius) - 2px */
    background: rgba(255, 255, 255, 0.08);
    transition:
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 4px 12px rgba(0, 0, 0, 0.1);
    will-change: transform, width;
}

/* Tab Panels */
.tab-panel {
    display: none;
    transform-origin: top;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-panel[aria-hidden="false"] {
    display: block;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Focus styles */
.tab-button:focus-visible {
    outline: 2px solid #646cff;
    outline-offset: 2px;
}

/* Content styling */
.tab-panel h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #646cff;
}

.tab-panel p {
    line-height: 1.6;
    opacity: 0.9;
}
