/* Modern Tabs Styles - Compact */
.tabs {
    display: flex;
    gap: 4px;
    align-items: center;
    flex: 1;
    max-width: 400px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-inner) transparent;
}

.tabs::-webkit-scrollbar {
    height: 4px;
}

.tabs::-webkit-scrollbar-track {
    background: transparent;
}

.tabs::-webkit-scrollbar-thumb {
    background: var(--border-inner);
    border-radius: 2px;
}

.tabs::-webkit-scrollbar-thumb:hover {
    background: var(--muted);
}

.tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    /* Reduced gap */
    padding: 6px 10px;
    /* Reduced padding */
    border-radius: 4px;
    /* Reduced radius */
    font-size: 12px;
    /* Reduced font size */
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    min-width: 80px;
    /* Reduced min width */
    max-width: 140px;
    /* Reduced max width */

    /* Default State */
    background: var(--panel2, #262626);
    border: 1px solid transparent;
    color: var(--muted, #b3b3b3);
}

.tab:hover {
    background: #2a2a2a;
    color: var(--text, #e6edf3);
}

.tab.active {
    background: color-mix(in srgb, var(--accent, #fab387) 15%, transparent);
    color: var(--accent, #fab387);
}

.tab-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Close Button */
.tab-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    /* Reduced size */
    height: 16px;
    border-radius: 3px;
    font-size: 11px;
    /* Reduced icon size */
    opacity: 0;
    transition: all 0.2s;
    color: currentColor;
    margin-right: -4px;
}

.tab:hover .tab-close,
.tab.active .tab-close {
    opacity: 0.6;
}

.tab-close:hover {
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.1);
    color: var(--danger, #ff6b6b);
}
