/* ═══════════════════════════════════════════════
   INDICATOR LINE POPUP
   Floating toolbar for indicator lines
   ═══════════════════════════════════════════════ */

.ilp-wrap {
    position: fixed;
    z-index: 9500;
    display: none;
    align-items: center;
    gap: 2px;
    height: 38px;
    padding: 0 8px;
    background: var(--ui-panel);
    border: 1px solid var(--ui-panel-border);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35), 0 1px 4px rgba(0,0,0,0.2);
    user-select: none;
    white-space: nowrap;
    animation: ilp-pop 0.14s cubic-bezier(0.34,1.56,0.64,1);
}

html[data-theme="light"] .ilp-wrap {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.08);
}

@keyframes ilp-pop {
    from { opacity: 0; transform: scale(0.92) translateY(4px); }
    to   { opacity: 1; transform: scale(1)    translateY(0);   }
}

/* Color swatch dot */
.ilp-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #2196F3;
    margin-right: 2px;
}

/* Indicator name */
.ilp-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ui-fg);
    letter-spacing: 0.01em;
    margin-right: 4px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Vertical separator */
.ilp-sep {
    width: 1px;
    height: 20px;
    background: var(--ui-panel-border);
    flex-shrink: 0;
    margin: 0 4px;
}

/* Generic icon button */
.ilp-btn {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--ui-muted);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
    padding: 0;
    font-family: inherit;
}

.ilp-btn:hover {
    background: var(--ui-button-hover);
    color: var(--ui-fg);
    border-color: var(--ui-panel-border);
}

.ilp-btn:active {
    transform: scale(0.93);
}

/* Delete button — red accent on hover */
.ilp-del-btn:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

/* Code/formula button */
.ilp-code-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
}

/* Arrow pointer */
.ilp-wrap::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: var(--ui-panel);
    border-right: 1px solid var(--ui-panel-border);
    border-bottom: 1px solid var(--ui-panel-border);
    transform: translateX(-50%) rotate(45deg);
    border-radius: 0 0 2px 0;
}
