/* === Tabs === */

/* Tab Button Styles */
.tab-button {
    transform: scale(0.95);
    box-shadow: none;
    background-color: transparent;
    color: #3B3D78;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-button:hover {
    transform: scale(0.98);
    background-color: rgba(255, 255, 255, 0.1);
}

.tab-button.active {
    background-color: white !important;
    transform: scale(1);
    box-shadow: 0px 4px 4px 0px rgba(199, 198, 197, 0.08);
    color: #000441;
}

/* Tab Panel Styles */
.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-panel.active {
    display: grid;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility improvements */
.tab-button[aria-selected="true"] {
    background-color: white !important;
    transform: scale(1);
    box-shadow: 0px 4px 4px 0px rgba(199, 198, 197, 0.08);
    color: #000441;
}

/* Focus visible for better accessibility */
.tab-button:focus-visible {
    /* outline: 2px solid #0006816a; */
    outline: 2px solid #00068108;
    outline-offset: 4px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .tab-button,
    .tab-panel {
        transition: none;
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .tab-button {
        border: 2px solid currentColor;
    }

    .tab-button.active {
        border-color: #000441;
        background-color: #000441 !important;
        color: white;
    }
}

/* === END Tabs === */