/* Global CSS Variables */
html,
body {
    text-align: left;
    font-size: var(--font-size-sm);
    color: var(--color-white);
    font-family: var(--font-work-sans);
}

body {
    background: #1C1C24 url(https://files.supernova-analytics.com/sn-app-icons/Profile/Page-Background-dark.png);
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
    background-attachment: fixed;
    /* Optional: locks background while content scrolls */
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}




/* Button Content Layout */
.button-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Icon Sizing */
.icon-add {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

/* Text Styling */
.button-text {
    position: relative;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-work-sans);
    color: white;
    text-align: center;
}

/* == Modes Tabs == */

.mode-wrapper {
    display: none;
}

.mode-tabs-row {
     display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: calc(100% - 112px);
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    left: 90px;
    top: 56px;   
}


.mode-tabs {
    display: inline-flex;
    position: relative;
    border: 1px solid #454857;
    border-radius: 4px;
}

/* Base button: no per-button border */
.mode-tab {
    appearance: none;
    border: 0;
    background: var(--Obsidian);
    color: #A8AAB0;
    padding: 10px 14px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
    font-family: var(--font-work-sans);
}

/* Single divider between segments, so seams stay consistent */
.mode-tab+.mode-tab {
border-left: 1px solid #454857;
}

/* Rounded ends only */
.mode-tab:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.mode-tab:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* Hover */
.mode-tab:hover {
background: #272730;
}

/* Active: don’t change borders; draw a 1px highlight with inset shadow */
.mode-tab.is-active {
    color: #fff;
    background: var(--Obsidian);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
    z-index: 2;
}

/* Keyboard focus */
.mode-tab:focus-visible {
    outline: 1px solid #3CB4CC;
    outline-offset: 1px;
    z-index: 999;
}



/* === Timeline Picklist === */

.timeline-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.timeline-icon {
    position: absolute;
    right: 12px;
    top: 16px;
    width: 12px;
    height: auto;
    pointer-events: none;
    filter: brightness(0) invert(1);
}

.timeline-picklist {
    width: 125px;
    height: 36px;
    padding-left: 12px;
    padding-right: 28px;
    border-radius: 4px;
    background-color: var(--Obsidian);
    border: 1px solid var(--Charcoal);
    color: #fff;
    font-family: var(--font-work-sans);
    font-size: 14px;
    appearance: none;
    cursor: pointer;
    background-image: none;
    box-sizing: border-box;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Optional: Add a custom caret if needed */
/*

.timeline-picklist::after {
  content: '';
  background-image: url('/public/icon-chevron-down.svg');
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  pointer-events: none;
}
*/

/* Interactions */

.timeline-picklist:hover {
background: #272730;
}


.timeline-picklist:focus {
    outline: 1px solid #3CB4CC;
    outline-offset: 1px;
}

@media screen and (max-width: 768px) {

    .mode-tabs-row {
        width: calc(100% - 36px);
        left: 18px;
    }
}

@media screen and (max-width: 580px) {
    .mode-tabs {
        display: none;
    }

    .mode-wrapper {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        width: 100%;
    }

    .timeline-wrapper {
        position: relative;
        display: inline-flex;
        align-items: center;
        width: 100%;
    }

    .timeline-picklist {
        width: 100%;
    }

    .mode-icon {
        position: absolute;
        right: 12px;
        top: 16px;
        width: 12px;
        height: auto;
        pointer-events: none;
        filter: brightness(0) invert(1);
        display: block;
    }

    .mode-tabs-row {
        flex-direction: row-reverse;
    }

    .mode-picklist {
        height: 36px;
        padding: 0 12px;
        border-radius: 4px;
        background-color: var(--Obsidian);
        border: 1px solid var(--Charcoal);
        font-family: var(--font-work-sans);
        font-size: 14px;
        color: white;
        box-sizing: border-box;
        appearance: none;
        cursor: pointer;
        transition: border-color 0.2s ease, background-color 0.2s ease;
        width: 100%;
    }

    .mode-picklist:hover {
        background-color: #272730
    }

    .mode-picklist:active,
    .mode-picklist:focus {
        border: 1px solid white;
        outline: none !important;
        box-shadow: none !important;
    }

    .mode-picklist:focus-visible {
        border: 1px solid #3CB4CC;
        outline: none !important;
        box-shadow: none !important;
    }




    .mode-picklist {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        outline: none;
        box-shadow: none;
        /* if you added any */
    }
}

