﻿.tabs-container {
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(var(--bs-secondary-rgb), 0.1), rgba(var(--bs-secondary-rgb), 0.01));
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tabs-header {
    display: flex;
    align-items: center;
    border-bottom-style: dotted;
    border-bottom-width: 1px;
    border-bottom-color: rgba(var(--bs-secondary-rgb), 0.35);
    transition: background 0.2s ease;
    position: relative;
    overflow-x: auto;
    scrollbar-width: thin;
}

.tab-button {
    flex-shrink: 0;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--bs-body-color);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    position: relative;
}

    .tab-button:hover:not(:disabled) {
        color: #FF6B00;
        background: linear-gradient(135deg, rgba(255, 107, 0, 0.1), transparent);
        border-bottom-color: #FF6B00;
    }

    .tab-button.active {
        color: #FF6B00;
        background: linear-gradient(135deg, rgba(255, 107, 0, 0.1), transparent);
        border-bottom-color: #FF6B00;
    }

    .tab-button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .tab-button:focus-visible {
        outline: 2px solid #3b82f6;
        outline-offset: -2px;
    }

.tab-icon {
    font-size: 1rem;
    line-height: 1;
}

.tabs-content {
    /*background: linear-gradient(135deg, rgba(22, 27, 34, 0.5), rgba(13, 17, 23, 0.25));*/
    position: relative;
    border-radius: 0 0 1rem 1rem;
    overflow: hidden;
    color: var(--bs-body-color);
}

.tab-panel {
    display: none;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

    .tab-panel.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 640px) {
    .tabs-header {
        -webkit-overflow-scrolling: touch;
    }

        .tabs-header::-webkit-scrollbar {
            height: 4px;
        }

        .tabs-header::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 2px;
        }
}

/*@media (prefers-color-scheme: dark) {
    .tabs-container {
        background: #1e293b;
    }

    .tabs-header {
        background: #0f172a;
        border-bottom-color: #334155;
    }

    .tab-button {
        color: #94a3b8;
    }

        .tab-button:hover:not(:disabled) {
            background: #1e293b;
            color: #e2e8f0;
        }

        .tab-button.active {
            color: #60a5fa;
            background: #1e293b;
            border-bottom-color: #60a5fa;
        }

    .tabs-content,
    .tab-panel {
        background: #1e293b;
        color: #e2e8f0;
    }
}*/


/* Custom icons */

.tab-icon {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 21px;
    height: 21px;
}

/* Reverse colors dark theme */
.tab-button .tab-icon {
    filter: brightness(0);
}
/* In tabs: Set the icon to all white on inactive tab */
[data-bs-theme="dark"] .tab-button .tab-icon {
    filter: brightness(0) invert(1);
}
/* In tabs: Set the icon to orange when active tab */
.tab-button.active .tab-icon, .tab-button:hover:not(:disabled) .tab-icon {
    filter: brightness(0) invert(1) invert(63%) sepia(59%) saturate(2000%) hue-rotate(1deg) brightness(100%) contrast(107%);
}
/* In tabs: Set the icon all black on hover */
/*.tab-button:hover:not(:disabled) .tab-icon {
    filter: brightness(0);
}*/