.flux-tabs-container {
    direction: rtl;
    width: 100%;
}

.flux-tab-navigation {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.flux-tab-list {
    display: flex;
    position: relative;
    z-index: 2;
    gap: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--flux-border-radius-lg, 12px);
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.flux-tab-button {
    position: relative;
    background: transparent;
    border: none;
    padding: 12px 0;
    border-radius: var(--flux-border-radius-md, 8px);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 3;
}

.flux-tab-button:hover {
    background: transparent;
}

.flux-tab-button.active {
    background: var(--flux-primary, #6366f1);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.flux-tab-button.active:hover {
    background: var(--flux-primary, #6366f1);
}

.flux-tab-label {
    font-family: 'YekanBakh', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--flux-gray-900, #111827);
    transition: all 0.3s ease;
    position: relative;
    z-index: 4;
    white-space: nowrap;
    letter-spacing: 0.025em;
}

.flux-tab-button:hover .flux-tab-label {
    color: var(--flux-gray-900, #111827);
}

.flux-tab-button.active .flux-tab-label {
    color: white;
    font-weight: 600;
}

.flux-tab-panels {
    position: relative;
    min-height: 400px;
}

.flux-tab-panel {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    opacity: 0;
    visibility: hidden;
    position: absolute;
    width: 100%;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.flux-tab-panel.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .flux-tab-navigation {
        padding: 4px;
        margin-bottom: 1.5rem;
    }

    .flux-tab-button {
        padding: 12px 16px;
        min-width: 100px;
    }

    .flux-tab-label {
        font-size: 0.85rem;
    }

    .flux-tab-panel {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .flux-tab-list {
        gap: 2px;
    }
}

@media (max-width: 480px) {
    .flux-tab-button {
        padding: 10px 12px;
        min-width: 80px;
    }

    .flux-tab-label {
        font-size: 0.8rem;
    }

    .flux-tab-panel {
        padding: 1rem;
    }
}

/* Accessibility improvements */
.flux-tab-button:focus {
    outline: 2px solid rgba(99, 102, 241, 0.5);
    outline-offset: 2px;
}

.flux-tab-button:focus:not(:focus-visible) {
    outline: none;
}

/* Smooth scrolling for overflow */
.flux-tab-list {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.flux-tab-list::-webkit-scrollbar {
    display: none;
} 