/* static/css/components/splitter.css */
.vertical-splitter {
    height: 4px;
    background-color: var(--quote-table-border, #E8E5E0);
    cursor: row-resize;
    position: relative;
    flex-shrink: 0;
    transition: background-color 0.2s;
    z-index: 10;
}

.vertical-splitter:hover {
    background-color: var(--color-accent);
}

.vertical-splitter.dragging {
    background-color: var(--color-accent-hover);
}

.splitter-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.splitter-line {
    width: 100%;
    height: 2px;
    background-color: currentColor;
    border-radius: 2px;
}

.splitter-drag-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.drag-label {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', system-ui, sans-serif;
}

/* Horizontal Splitter - 左右分割器（重用 .resize-handle） */
.horizontal-splitter,
.resize-handle.horizontal-splitter {
    cursor: col-resize;
    transition: background-color 0.2s;
}

.horizontal-splitter:hover,
.resize-handle.horizontal-splitter:hover {
    background-color: var(--color-accent);
}

.horizontal-splitter.dragging,
.resize-handle.horizontal-splitter.dragging {
    background-color: var(--color-accent-hover);
}

/* 拖動中的游標 */
body.resizing {
    cursor: col-resize !important;
    user-select: none;
}

/* Panel基礎樣式 */
.split-view-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.top-panel,
.bottom-panel {
    overflow: auto;
}

.top-panel {
    flex: 0.4 0 0;
    min-height: 200px;
}

.bottom-panel {
    flex: 0.6 0 0;
    min-height: 300px;
}
