/* Resizer Styles */
.resizer {
    width: 8px; /* Slightly wider */
    background: transparent;
    cursor: col-resize;
    z-index: 1000; /* Much higher to avoid overlap */
    transition: background 0.2s;
    flex-shrink: 0;
    position: relative;
    /* Negative margin to overlap adjacent borders for better UX */
    margin-left: -4px;
    margin-right: -4px;
}

/* Hide resizer when sidebar is collapsed */
.sidebar.collapsed + .resizer#leftResizer {
    display: none !important;
}

/* Visual indicator for resizer */
.resizer::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 20px;
    background: var(--border-color);
    border-radius: 1px;
    transition: background 0.2s, height 0.2s;
}

.resizer:hover::after, .resizer.resizing::after {
    background: var(--primary);
    height: 100%;
}

.resizer:hover, .resizer.resizing {
    background: rgba(139, 92, 246, 0.1); /* Primary with opacity */
}


/* Ensure sidebars don't have transitions while resizing to prevent lag */
.no-transition {
    transition: none !important;
}

/* Update Sidebar and Panel to support resizing */
.sidebar {
    /* min-width removed to allow collapsing */
    /* width is handled by style.css */
}

.sidebar.collapsed {
    min-width: 0 !important; /* Force override if needed */
}

.side-panel {
    /* width is controlled by JS when open, but let's set min/max */
    /* min-width: 300px;  REMOVED to allow full closing */
    max-width: 800px;
}

.side-panel.open {
    min-width: 300px;
}
