/* assets/css/stracti_target_selector.css */

.sc-target-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100; /* Above image, below floating toolbar */
    cursor: crosshair;
    background: rgba(0, 0, 0, 0.2); /* Slight dim */
    user-select: none;
}

/* The actual drawn box */
.sc-selection-box {
    position: absolute;
    border: 2px dashed #00e054;
    background: rgba(0, 224, 84, 0.1);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    pointer-events: auto; /* Allow clicking to select/remove later */
}

.sc-selection-box:hover {
    background: rgba(0, 224, 84, 0.2);
    cursor: pointer;
}

.sc-selection-box.selected {
    border-style: solid;
    border-color: #fff;
    z-index: 101;
}

/* Delete button on the box */
.sc-box-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* The Bottom Action Bar */
.sc-target-actions-bar {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #09090b;
    border: 1px solid #27272a;
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    z-index: 200;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.sc-target-btn {
    background: #27272a;
    color: #e4e4e7;
    border: 1px solid #3f3f46;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.sc-target-btn:hover {
    background: #3f3f46;
    color: #fff;
}

.sc-target-btn.primary {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.sc-target-btn.primary:hover {
    background: #2563eb;
}