/* =========================================
   DASHBOARD PILL (The Pro Fader - Unified)
   ========================================= */

/* The Main Container */
.interactive-data, .interactive-data-example {
    height: 42px;
    padding: 0 16px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.05);

    /* Layout */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    /* Spacing between the two identical lines */
    gap: 1px;

    /*cursor: pointer;*/
    flex-shrink: 0;
    min-width: 110px;
    transition: background 0.2s ease;
    user-select: none;
    ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

.interactive-data:hover {
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

/* 🟢 TOP ROW: THE TICKER CONTAINER */
.pill-ticker-container {
    display: grid;
    grid-template-areas: "stack";
    align-items: center;
    justify-content: center;
    height: 14px; /* Fixed height slot */
    width: 100%;
    margin: 0;
}

/* The Items inside the ticker */
.ticker-item {
    grid-area: stack;

    /* 🟢 UNIFIED STYLING (Matches Status Below) */
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-transform: none; /* No Caps */

    letter-spacing: 0.2px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.5s ease;
    line-height: 1;
}

/* STATE A: Low Traffic */
.pill-ticker-container:not(.has-traffic) .item-runs { opacity: 1; }
.pill-ticker-container:not(.has-traffic) .item-users { display: none; }

/* STATE B: High Traffic */
.pill-ticker-container.has-traffic .item-runs { animation: fadeCycle 8s infinite; }
.pill-ticker-container.has-traffic .item-users {
    animation: fadeCycle 8s infinite reverse;
    animation-delay: 4s;
}

@keyframes fadeCycle {
    0%, 45% { opacity: 1; transform: translateY(0); }
    50%, 95% { opacity: 0; transform: translateY(-2px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* 🟢 BOTTOM ROW: STATUS */
.status-text {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-transform: none;
    line-height: 1;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    /* 🟢 Add transform for the slide effect */
    transition: opacity 0.2s ease, transform 0.2s ease;

    /* Ensure it starts in the correct place */
    transform: translateY(0);
    opacity: 1;
}

.status-text[data-mode="live"] .status-dot { color: #2ecc71; font-size: 10px; } /* Green */
.status-text[data-mode="sim"] .status-dot { color: #f39c12; font-size: 10px; }  /* Orange */

.help-q {
    display: inline-flex; align-items: center; justify-content: center;
    width: 12px; height: 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    font-size: 8px; color: #ccc;
    position: relative; top: -0.5px;
}