/* Utility styles - resizer, stats bars */

/* Resizer Handle */
.resizer-handle {
    width: 6px;
    background: transparent;
    cursor: col-resize;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    transition: background-color 0.2s;
}

.resizer-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 40px;
    background: #cbd5e1;
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.2s;
}

.resizer-handle:hover {
    background: rgba(234, 88, 12, 0.1);
}

.resizer-handle:hover::after {
    opacity: 1;
}

.resizer-handle.dragging {
    background: rgba(234, 88, 12, 0.2);
}

.resizer-handle.dragging::after {
    opacity: 1;
    background: #ea580c;
}

.dark .resizer-handle::after {
    background: #475569;
}

.dark .resizer-handle:hover {
    background: rgba(251, 146, 60, 0.1);
}

.dark .resizer-handle.dragging {
    background: rgba(251, 146, 60, 0.2);
}

.dark .resizer-handle.dragging::after {
    background: #fb923c;
}

/* Stats Bars */
#inputStats, #treeStats {
    font-family: 'JetBrains Mono', monospace;
}

#inputStats span, #treeStats span {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Line Numbers Gutter */
#lineNumbers {
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.6;
    font-size: 0.75rem;
}

#lineNumbers .line-number {
    height: 1.6em;
    display: block;
}

#lineNumbers .line-number.error {
    color: #dc2626;
    font-weight: 600;
    background: rgba(220, 38, 38, 0.1);
    margin-right: -0.5rem;
    padding-right: 0.5rem;
    border-radius: 2px 0 0 2px;
}

.dark #lineNumbers .line-number.error {
    color: #f87171;
    background: rgba(248, 113, 113, 0.15);
}

/* Error Line Highlight */
#errorHighlight {
    transition: top 0.15s ease-out;
}

/* Sync textarea and line numbers scroll */
#jsonInput {
    line-height: 1.6;
}

/* Power User Mode - Hide advanced features in basic mode */
.power-user-hidden {
    display: none !important;
}