/* Custom styles for the application */
body {
    font-family: "Inter", "Noto Sans SC", sans-serif;
}
.drop-zone {
    border: 2px dashed #d1d5db; /* gray-300 */
    transition: border-color 0.2s, background-color 0.2s;
}
.drop-zone.dragover {
    border-color: #3b82f6; /* blue-500 */
    background-color: #eff6ff; /* blue-50 */
}
/* Custom radio button styles for position selection */
.position-grid input[type="radio"] {
    display: none;
}
.position-grid label {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid #e5e7eb; /* gray-200 */
    background-color: #f9fafb; /* gray-50 */
    transition: all 0.2s;
    height: 40px;
}
.position-grid input[type="radio"]:checked + label {
    background-color: #3b82f6; /* blue-500 */
    border-color: #2563eb; /* blue-600 */
    color: white;
}
.position-grid label:hover {
    background-color: #dbeafe; /* blue-100 */
    border-color: #93c5fd; /* blue-300 */
}
/* Crop Preview Styles */
#cropPreviewContainer {
    background-color: #f3f4f6;
    min-height: 150px;
    user-select: none; /* Prevent text selection while dragging */
}
#cropSelectionBox {
    position: absolute;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
    border: 1px dashed #fff;
    cursor: move; /* Indicate it's draggable */
}
.resize-handle {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #fff;
    border: 1px solid #3b82f6;
    border-radius: 50%;
    z-index: 10;
}
.handle-tl {
    top: -5px;
    left: -5px;
    cursor: nwse-resize;
}
.handle-tc {
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    cursor: ns-resize;
}
.handle-tr {
    top: -5px;
    right: -5px;
    cursor: nesw-resize;
}
.handle-ml {
    top: 50%;
    left: -5px;
    transform: translateY(-50%);
    cursor: ew-resize;
}
.handle-mr {
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    cursor: ew-resize;
}
.handle-bl {
    bottom: -5px;
    left: -5px;
    cursor: nesw-resize;
}
.handle-bc {
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    cursor: ns-resize;
}
.handle-br {
    bottom: -5px;
    right: -5px;
    cursor: nwse-resize;
}
.thumbnail-img {
    cursor: zoom-in;
}
