.tabs-container {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.tab-button:hover {
    color: var(--primary-color);
    background-color: var(--bg-tertiary);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content-container {
    padding: 0;
}

.tab-content {
    display: none !important;
    visibility: hidden;
    position: absolute;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}
        
.tab-content.active {
    display: block !important;
    visibility: visible;
    position: relative;
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1rem 0.5rem;
}

.tab-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.tab-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem 1rem;
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.tab-link {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.tab-link:hover {
    text-decoration: underline;
}
