/* css/tabs.css */

#global-tab-bar {
    display: flex;
    flex-wrap: nowrap;
    /* Prevent tabs from wrapping to next line */
    overflow-x: auto;
    /* Allow horizontal scrolling if tabs exceed width */
    -webkit-overflow-scrolling: touch;
    /* Smooth scroll on iOS */
    scrollbar-width: none;
    /* Hide scrollbar for Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar for IE/Edge */

    height: 100%;
    /* Fill the header's height */
    margin-left: 0px;
    /* If no logo, tabs start at edge */
    /* border-top: 1px solid #2a2a2a; */
    /* Optional subtle top line for tab bar */
    padding-top: 5px;
}

#global-tab-bar::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for Webkit (Chrome, Safari) */
}

.tab-button {
    flex-shrink: 0;
    /* Prevents individual tabs from shrinking */
    background-color: #0B0B0B;
    /* Slightly off-black for non-active tabs */
    border: none;
    border-right: 1px solid #000000;
    /* Black separator */
    padding: 0 18px;
    cursor: pointer;
    color: #777777;
    /* Dimmer non-active tab color */
    font-size: 0.8em;
    /* Smaller tab text */
    font-weight: 500;
    transition: background-color 0.15s, color 0.15s, border-radius 0.1s ease-out;
    outline: none;
    position: relative;
    line-height: 29px;
    /* Align text vertically in tab (header_height - border_bottom_height) */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    /* margin-right: 2px; /* Spacing via border now */

    border-bottom: 1px solid #000000;
    /* Separator from content */
    white-space: nowrap;
}

.tab-button:last-child {
    border-right: none;
    /* No right border on the last tab if it's against an edge */
}


.tab-button.active {
    background-color: #020202;
    /* Match main content area background (pure black) */
    color: #ffffff;
    font-weight: 700;
    border-bottom: 1px solid #000000;
    /* Bottom border matches background, making it "disappear" */
    z-index: 1;
    /* Ensure active tab is above others */
    /* No box-shadow for a flatter active tab look */
}


.tab-button:hover {
    background-color: #1a1a1a;
    /* Darker hover */
    color: #b0b0b0;
}


.tab-close-button {
    margin-left: 10px;
    font-weight: normal;
    color: #666;
    /* Dimmer close button */
    padding: 0px 7px 0px 7px;
    border-radius: 10%;
    /* More circular */
    line-height: 1;
    font-size: 1.2em;
    /* Slightly larger 'x' */
    display: inline-block;
    vertical-align: middle;
    transition: background-color 0.15s, color 0.15s;
}

.tab-close-button:hover {
    background-color: #333;
    color: #fff;
}

/* Tab Panel Styling */
.tab-panel {
    display: none;
    height: 100%;
    box-sizing: border-box;
    animation: panelFadeIn 0.15s ease-out;
    /* Faster fade */
}

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

@keyframes panelFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}