/* Indicators: the chart menu and the panes it opens.
   Shared by the terminal (views/combined-orderbook.ejs) and the per-coin
   whale page (views/whale-trades-coin.ejs). Tokens from terminal-tokens.css. */

.ind-anchor { position: relative; display: inline-flex; align-items: center; }

.ind-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 20px;
    padding: 0 8px;
    background: rgba(238,90,44,0.10);
    border: 1px solid rgba(238,90,44,0.38);
    border-radius: 5px;
    color: #FF8A5C;
    font-family: var(--tt-mono, ui-monospace, monospace);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 140ms var(--tt-ease-out, ease-out), color 140ms var(--tt-ease-out, ease-out), border-color 140ms var(--tt-ease-out, ease-out);
}
.ind-btn:hover, .ind-btn[aria-expanded="true"] {
    background: rgba(238,90,44,0.22);
    border-color: var(--tt-accent, #EE5A2C);
    color: var(--tt-text, #FFF6EA);
}
.ind-btn:focus-visible { outline: 2px solid var(--tt-accent, #EE5A2C); outline-offset: 2px; }
.ind-btn .ind-count {
    min-width: 15px;
    padding: 0 4px;
    border-radius: 7px;
    background: var(--tt-accent, #EE5A2C);
    color: #0A2A44;
    font-size: 9px;
    line-height: 13px;
    text-align: center;
}

.ind-menu {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    z-index: 1040;
    width: 252px;
    max-height: min(62vh, 420px);
    overflow-y: auto;
    padding: 8px;
    background: var(--tt-panel-solid, #103756);
    background: var(--tt-panel-grad, linear-gradient(145deg, #103756, #0D3152));
    border: 1px solid var(--tt-border, rgba(255,246,234,0.12));
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(2,10,20,0.55);
    animation: ind-menu-in 160ms var(--tt-ease-out, cubic-bezier(0.16,1,0.3,1));
}
@keyframes ind-menu-in {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .ind-menu { animation: none; } }

.ind-group + .ind-group { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--tt-border-soft, rgba(255,246,234,0.07)); }
.ind-group-title {
    padding: 0 6px 5px;
    font-family: var(--tt-mono, ui-monospace, monospace);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tt-text-dim, #93AEC4);
}

.ind-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px;
    background: none;
    border: 0;
    border-radius: 7px;
    color: var(--tt-text, #FFF6EA);
    text-align: left;
    cursor: pointer;
    transition: background-color 120ms var(--tt-ease-out, ease-out);
}
.ind-row:hover { background: rgba(255,246,234,0.06); }
.ind-row:focus-visible { outline: 2px solid var(--tt-accent, #EE5A2C); outline-offset: -2px; }
.ind-sw { width: 8px; height: 8px; border-radius: 2px; flex: 0 0 auto; }
.ind-name { font-family: var(--tt-sans, system-ui, sans-serif); font-size: 12px; font-weight: 600; }
.ind-meta {
    margin-left: auto;
    font-family: var(--tt-mono, ui-monospace, monospace);
    font-size: 9.5px;
    color: var(--tt-text-dim, #93AEC4);
}
.ind-tick {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    border: 1px solid var(--tt-border, rgba(255,246,234,0.12));
    border-radius: 4px;
}
.ind-row[aria-checked="true"] .ind-tick {
    background: var(--tt-accent, #EE5A2C);
    border-color: var(--tt-accent, #EE5A2C);
    position: relative;
}
.ind-row[aria-checked="true"] .ind-tick::after {
    content: '';
    position: absolute;
    left: 4px; top: 1px;
    width: 3px; height: 7px;
    border: solid #0A2A44;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.ind-row[aria-checked="true"] .ind-name { color: var(--tt-text, #FFF6EA); }
/* The menu's ONE Pro mark, at the top. It used to repeat on all eight rows,
   where a tag on every line marks nothing. */
.ind-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 10px 8px;
    border-bottom: 1px solid var(--tt-border, rgba(255,246,234,0.12));
    margin-bottom: 4px;
}
.ind-head-t {
    font-family: var(--tt-display, system-ui, sans-serif);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--tt-text, #FFF6EA);
}
.ind-pro {
    flex: 0 0 auto;
    padding: 1px 6px;
    border-radius: 5px;
    background: rgba(247,193,30,0.14);
    color: var(--tt-gold, #F7C11E);
    font-family: var(--tt-mono, ui-monospace, monospace);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ── Panes ──────────────────────────────────────────────────────────────── */
.ind-panes:empty { display: none; }
.ind-panes { display: block; }
.ind-pane {
    position: relative;
    padding: 0 6px 2px;
    border-top: 1px solid var(--tt-border-soft, rgba(255,246,234,0.07));
    background: rgba(7,30,51,0.55);
}
.ind-pane-tag {
    position: absolute;
    top: 4px; left: 12px;
    z-index: 3;
    font-family: var(--tt-mono, ui-monospace, monospace);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tt-text-muted, #A9C2D6);
    pointer-events: none;
}
.ind-pane-tag em { font-style: normal; color: var(--tt-text-dim, #93AEC4); }
.ind-pane-empty {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--tt-mono, ui-monospace, monospace);
    font-size: 10px;
    color: var(--tt-text-dim, #93AEC4);
    pointer-events: none;
}
.ind-pane-empty[hidden] { display: none; }
.ind-pane-canvas { min-height: 92px; }

@media (max-width: 760px) {
    .ind-menu { width: min(88vw, 252px); }
}
