/* ==================== CHART OVERLAYS ==================== */

/* Volume Profile Overlay */
.vp-overlay {
    position: absolute;
    right: 60px;
    top: 0;
    bottom: 0;
    width: 120px;
    pointer-events: none;
    z-index: 5;
}

.vp-bar {
    position: absolute;
    right: 0;
    height: 2px;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.vp-bar.poc {
    opacity: 1;
    height: 3px;
    box-shadow: 0 0 4px currentColor;
}
.vp-bar.vah, .vp-bar.val {
    border-right: 2px dashed rgba(255,255,255,0.3);
}

/* FVG Overlays */
.fvg-zone {
    position: absolute;
    left: 0;
    right: 60px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 3;
    border-left: 3px solid;
}
.fvg-zone.bullish {
    background: var(--buy);
    border-color: var(--buy);
}
.fvg-zone.bearish {
    background: var(--sell);
    border-color: var(--sell);
}

/* Order Block Overlays */
.ob-zone {
    position: absolute;
    left: 0;
    right: 60px;
    opacity: 0.1;
    pointer-events: none;
    z-index: 2;
    border-left: 3px solid;
}
.ob-zone.bullish {
    background: #00D4AA;
    border-color: #00D4AA;
}
.ob-zone.bearish {
    background: #FF4976;
    border-color: #FF4976;
}

/* Liquidity Zone Labels */
.liq-label {
    position: absolute;
    right: 65px;
    padding: 2px 8px;
    font-size: 10px;
    font-family: var(--font-mono);
    font-weight: 600;
    border-radius: 3px;
    z-index: 6;
    pointer-events: none;
}
.liq-label.high {
    background: rgba(255, 73, 118, 0.2);
    color: var(--sell);
    border: 1px solid rgba(255, 73, 118, 0.4);
}
.liq-label.low {
    background: rgba(0, 212, 170, 0.2);
    color: var(--buy);
    border: 1px solid rgba(0, 212, 170, 0.4);
}

/* VWAP Line */
.vwap-line {
    position: absolute;
    left: 0;
    right: 60px;
    height: 1px;
    z-index: 4;
    pointer-events: none;
}
.vwap-line.main {
    background: #F0B429;
    box-shadow: 0 0 4px rgba(240, 180, 41, 0.5);
}
.vwap-line.upper {
    background: rgba(240, 180, 41, 0.3);
    border-top: 1px dashed rgba(240, 180, 41, 0.5);
}
.vwap-line.lower {
    background: rgba(240, 180, 41, 0.3);
    border-top: 1px dashed rgba(240, 180, 41, 0.5);
}

/* Market Structure Labels */
.ms-label {
    position: absolute;
    padding: 2px 6px;
    font-size: 9px;
    font-family: var(--font-mono);
    font-weight: 700;
    border-radius: 3px;
    z-index: 7;
    pointer-events: none;
    letter-spacing: 0.5px;
}
.ms-label.hh { color: var(--buy); background: rgba(0,212,170,0.15); }
.ms-label.hl { color: var(--buy); background: rgba(0,212,170,0.1); }
.ms-label.ll { color: var(--sell); background: rgba(255,73,118,0.15); }
.ms-label.lh { color: var(--sell); background: rgba(255,73,118,0.1); }
.ms-label.bos { color: var(--warning); background: rgba(240,180,41,0.15); }
.ms-label.choch { color: #58A6FF; background: rgba(88,166,255,0.15); }

/* Chart Loading */
.chart-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    z-index: 10;
}

.chart-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Price Line */
.price-line-label {
    position: absolute;
    right: 0;
    padding: 2px 8px;
    font-size: 11px;
    font-family: var(--font-mono);
    font-weight: 600;
    z-index: 5;
    pointer-events: none;
}
.price-line-label.bid {
    background: var(--sell);
    color: #fff;
    border-radius: 3px 0 0 3px;
}
.price-line-label.ask {
    background: var(--buy);
    color: #000;
    border-radius: 3px 0 0 3px;
}
