.tts-tabs {
    width: 100%;
    margin: 20px 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.tabs-scroll-container {
    position: relative;
    background: #f0f4f8;
    border-radius: 12px 12px 0 0;
    padding: 16px 40px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.tabs-navigation {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 8px;
    padding-bottom: 5px;
}

.tabs-navigation::-webkit-scrollbar {
    display: none;
}

.scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: white;
    color: #4b5563;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: all 0.2s ease;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.scroll-button:hover {
    color: #2563eb;
    background: #f8fafc;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.scroll-button svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.scroll-button.left {
    left: 8px;
}

.scroll-button.right {
    right: 8px;
}

.scroll-button:disabled {
    opacity: 0;
    cursor: default;
}

.tab-button {
    padding: 14px 24px;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    transition: all 0.3s ease;
    margin-bottom: 0;
    position: relative;
    white-space: nowrap;
    flex: 0 0 auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.tab-button:hover {
    background: white;
    color: #2563eb;
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

.tab-button.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
}

.tab-button.active:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.tabs-content {
    padding: 24px;
    min-height: 300px;
    background: white;
    border-radius: 0 0 12px 12px;
}

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

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

.mobile-dropdown {
    display: none;
    width: calc(100% - 32px);
    margin: 16px;
    padding: 14px;
    font-size: 16px;
    font-weight: 500;
    color: #1f2937;
    background-color: white;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-dropdown:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 480px) {
    .tabs-scroll-container {
        display: none;
    }

    .mobile-dropdown {
        display: block;
    }

    .tts-tabs {
        border-radius: 10px;
    }

    .tabs-content {
        padding: 16px;
    }
}