/* Main Styles */
#canvas-wrapper {
    background-color: #f8f9fa;
    user-select: none;
}

.canvas-inner-container {
    cursor: crosshair;
}

/* Selection Box with Grid Pattern */
.selection-box {
    position: absolute;
    display: none;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #0d6efd;
    /* Blue outline outside white border */
    cursor: move;
    z-index: 10;

    /* 10x10 Grid Pattern Simulation */
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.3) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 10px 10px;
    /* The "10x10" grid look */
    background-color: rgba(13, 110, 253, 0.1);
    /* Slight blue tint */
}

/* Handles */
.resize-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #fff;
    border: 2px solid #0d6efd;
    border-radius: 50%;
    /* Circle handles */
    z-index: 11;
}

.resize-handle:hover {
    background-color: #0d6efd;
    transform: scale(1.2);
}

/* Corner Positions */
.handle-nw {
    top: -6px;
    left: -6px;
    cursor: nw-resize;
}

.handle-ne {
    top: -6px;
    right: -6px;
    cursor: ne-resize;
}

.handle-sw {
    bottom: -6px;
    left: -6px;
    cursor: sw-resize;
}

.handle-se {
    bottom: -6px;
    right: -6px;
    cursor: se-resize;
}

/* Dimmer Effect (optional, but good for focus) */
/* Implemented via JS overlay logic or simple CSS if possible, 
   but simplistic CSS dimmer often requires complex clip-path. 
   We'll stick to just the box being obvious for now to match simplicity. */