/* ════════════════════════════════════════════════════════════
   Splitters Profissionais — Painéis Redimensionáveis
   Usa as variáveis CSS do sistema: --border, --primary, --text-secondary
   ════════════════════════════════════════════════════════════ */

/* ── Base do Splitter ── */
.panel-splitter {
    flex-shrink: 0;
    position: relative;
    background: var(--border);
    transition: background 0.15s ease, opacity 0.15s ease;
    z-index: 20;
    /* Área de interação maior que a visual (via pseudo-elemento) */
    touch-action: none;
    user-select: none;
}

/* ── Splitter Vertical (entre painéis lado a lado) ── */
.panel-splitter-v {
    width: 5px;
    cursor: col-resize;
    align-self: stretch;   /* preenche altura total do flex row */
}

/* ── Splitter Horizontal (code-section ↕ dom-section) ── */
.panel-splitter-h {
    height: 5px;
    width: 100%;
    cursor: row-resize;
    flex-shrink: 0;
}

/* ── Grip Visual ── */
.splitter-grip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
    border-radius: 2px;
}

/* Grip vertical: padrão de pontos em coluna */
.panel-splitter-v .splitter-grip {
    width: 3px;
    height: 28px;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.85) 1.2px, transparent 1.2px);
    background-size: 3px 6px;
    background-repeat: repeat-y;
}

/* Grip horizontal: padrão de pontos em linha */
.panel-splitter-h .splitter-grip {
    height: 3px;
    width: 28px;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.85) 1.2px, transparent 1.2px);
    background-size: 6px 3px;
    background-repeat: repeat-x;
}

/* ── Estados: Hover e Drag Ativo ── */
.panel-splitter:hover {
    background: var(--primary);
    opacity: 0.65;
}

.panel-splitter:hover .splitter-grip {
    opacity: 1;
    color: white;
}

.panel-splitter.active {
    background: var(--primary);
    opacity: 1;
}

.panel-splitter.active .splitter-grip {
    opacity: 1;
    color: white;
}

/* ── Overlay Global durante Drag ──
   Cobre o iframe e toda a janela para que o mouse não "escape"  */
.resize-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: transparent;
    user-select: none;
    pointer-events: all;
}
