/* Nudge tool: polygon overlay, handles, floating preview, devpanel controls */

.nudge-overlay {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10;
}

.nudge-overlay svg {
    overflow: visible;
}

.nudge-polygon {
    fill: rgba(100, 180, 255, 0.12);
    stroke: rgba(100, 180, 255, 0.6);
    stroke-width: 1.5;
    stroke-dasharray: 6 3;
}

.nudge-handle {
    fill: rgba(100, 180, 255, 0.8);
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 1.5;
    cursor: grab;
    pointer-events: all;
}

.nudge-handle:hover {
    fill: rgba(100, 180, 255, 1);
    r: 8;
}

.nudge-midpoint {
    fill: rgba(100, 180, 255, 0.3);
    stroke: rgba(100, 180, 255, 0.6);
    stroke-width: 1;
    cursor: pointer;
    pointer-events: all;
}

.nudge-midpoint:hover {
    fill: rgba(100, 180, 255, 0.7);
    r: 6;
}

.nudge-preview {
    position: absolute;
    pointer-events: none;
    opacity: 0.8;
    z-index: 11;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    transition: none;
}

/* Devpanel nudge tab */
.nudge-status {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
    min-height: 16px;
}

.nudge-btn-row {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.nudge-btn {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    cursor: pointer;
}

.nudge-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.85);
}

.nudge-btn-primary {
    background: rgba(100, 180, 255, 0.2);
    border-color: rgba(100, 180, 255, 0.4);
    color: rgba(100, 180, 255, 0.9);
}

.nudge-btn-primary:hover {
    background: rgba(100, 180, 255, 0.3);
    color: rgba(100, 180, 255, 1);
}

.nudge-btn-danger {
    width: 100%;
    margin-top: 6px;
    color: rgba(255, 120, 100, 0.6);
    border-color: rgba(255, 120, 100, 0.15);
}

.nudge-btn-danger:hover {
    background: rgba(255, 120, 100, 0.12);
    color: rgba(255, 120, 100, 0.85);
    border-color: rgba(255, 120, 100, 0.3);
}
