/* CSS for ExamMint Resizer Tool */

/* Custom Animations */
@keyframes pulse-border {
    0% { border-color: rgba(59, 130, 246, 0.5); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    70% { border-color: rgba(59, 130, 246, 1); box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
    100% { border-color: rgba(59, 130, 246, 0.5); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* Drag and Drop Active State */
.drag-active {
    background-color: rgba(219, 234, 254, 0.5); /* blue-50 */
    border-color: #3b82f6; /* blue-500 */
    animation: pulse-border 2s infinite;
}

/* Custom Scrollbar for the preview/cropper area if needed */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Cropper JS Overrides for a cleaner look */
.cropper-view-box,
.cropper-face {
    border-radius: 0; /* Keep it sharp for official photos */
}

.cropper-line, .cropper-point {
    background-color: #3b82f6 !important; /* Tailwind blue-500 */
}

.cropper-point.point-se {
    width: 10px;
    height: 10px;
}

/* Pattern background for preview containers */
.preview-bg-pattern {
    background-color: #f8fafc;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 10px 10px;
}

/* Styling the generic range input if we add one later */
input[type=range] {
    -webkit-appearance: none; /* Hides the slider so that custom slider can be made */
    width: 100%; /* Specific width is required for Firefox. */
    background: transparent; /* Otherwise white in Chrome */
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
}

input[type=range]:focus {
    outline: none; /* Removes the blue border. You should probably do some kind of focus styling for accessibility reasons though. */
}
