/* Tabbed Interface */
.tab-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tab-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.5rem;
    border-radius: 9999px;
    margin-bottom: 3rem;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.03);
}

.tab-btn.active {
    background: #fff;
    color: #000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-weight: 600;
}

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

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

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

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

/* Dark mode support for tabs */
@media (prefers-color-scheme: dark) {
    .tab-nav {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .tab-btn {
        color: #aaa;
    }

    .tab-btn:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.05);
    }

    .tab-btn.active {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
}

/* Mobile responsiveness for tabs */
@media (max-width: 768px) {
    .tab-nav {
        border-radius: 1rem;
        width: -webkit-fit-content;
        width: -moz-fit-content;
        width: fit-content;
        max-width: 100%;
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0.75rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
    }

    .tab-nav::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .tab-btn {
        flex-shrink: 0;
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}

/* Tab Description */
.tab-description {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0 1rem;
    animation: fadeIn 0.5s ease-out forwards;
}

/* Mobile adjustment for description */
@media (max-width: 576px) {
    .tab-description {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
        text-align: left;
        /* Better readability on small screens */
    }
}