
/* Gradient Pen Tool Panel */
.gp-panel {
    position: fixed;
    z-index: 99999;
    background: #1e1e24;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    box-shadow: 0 8px 26px rgba(0,0,0,0.24);
    width: 240px;
    padding: 10px 12px 14px;
    display: none;
    direction: rtl;
}
.gp-panel.is-open { display: block; }
.gp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.gp-title {
    font-size: 12px;
    font-weight: 700;
    color: #a855f7;
}
.gp-close {
    background: none;
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.gp-close:hover { color: #fff; }
.gp-body { }
.gp-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}
.gp-preview-bar {
    height: 20px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 6px;
    background: linear-gradient(to right, #ff0000, #0000ff);
}
.gp-stop-row:hover {
    background: rgba(255,255,255,0.04);
    border-radius: 4px;
}
.gp-stop-opacity::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #a855f7;
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
}
.gp-stop-opacity::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #a855f7;
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
}
.gp-checkerboard {
    background-color: #3a3a3a;
    background-image:
        linear-gradient(45deg, #5a5a5a 25%, transparent 25%),
        linear-gradient(-45deg, #5a5a5a 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #5a5a5a 75%),
        linear-gradient(-45deg, transparent 75%, #5a5a5a 75%);
    background-size: 10px 10px;
    background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
}
.gp-gradient-bar {
    position: relative;
    z-index: 1;
}
.gp-gradient-bar::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 5px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
    pointer-events: none;
}
.gp-stop-handle {
    transition: border-color 0.12s, box-shadow 0.12s;
}
.gp-stop-handle:hover {
    border-color: #a855f7 !important;
    box-shadow: 0 0 0 2px rgba(168,85,247,0.4), 0 1px 5px rgba(0,0,0,0.5) !important;
    z-index: 11 !important;
}
