/* Drag/Resize Handle Styles */

.resize-handle {
    position: relative;
    z-index: 100;
    background-color: transparent;
    transition: background-color 0.2s ease;
}

.resize-handle:hover {
    background-color: transparent;
}

.resize-handle-vertical {
    width: 5px;
    height: 100vh;
    cursor: ew-resize;
    flex-shrink: 0;
}

.resize-handle-vertical::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3px;
    height: 80vh;
    background: linear-gradient(to bottom,transparent,#002046,#57b2e4,#002046,transparent);
    );
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.resize-handle-vertical:hover::before {
    opacity: 0.5;
}

.resize-handle-horizontal {
    width: 100%;
    height: 5px;
    cursor: ns-resize;
    flex-shrink: 0;
    position: relative;
}

.resize-handle-horizontal::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 3px;
    width: 80vw;
    background: linear-gradient(to right,transparent,#002046,#57b2e4,#002046,transparent);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.resize-handle-horizontal:hover::before {
    opacity: 1;
}

/* Prevent text selection during resize */
body.resizing {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

body.resizing * {
    cursor: inherit !important;
}

/* Make panels work with resize */
.layout-left {
    transition: width 0.05s ease-out;
}

.layout-right-top,
.layout-right-bottom {
    transition: height 0.05s ease-out;
}
