/* Draggable Images Styles */
.draggable-image {
    user-select: none;
    transition: all 0.2s ease;
}

.draggable-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.draggable-image:active {
    transform: scale(0.95);
}

/* Drop Zone Styles */
.drop-zone {
    min-height: 120px;
    min-width: 120px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9fafb;
    transition: all 0.2s ease;
    position: relative;
}

.drop-zone:hover {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.drop-zone.drag-over {
    border-color: #3b82f6;
    background-color: #dbeafe;
    transform: scale(1.02);
}

.drop-zone.drag-over::before {
    content: "Drop here";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #3b82f6;
    font-weight: 500;
    font-size: 14px;
    z-index: 1;
}

/* Dropped Image Styles */
.dropped-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Question Area with Drop Zones */
.question-with-drop-zones {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question-image-container {
    position: relative;
    display: inline-block;
}

.question-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Drop zone overlay on question image */
.question-image-drop-zone {
    position: absolute;
    border: 2px dashed #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
}

.question-image-drop-zone.drag-over {
    background-color: rgba(59, 130, 246, 0.2);
    border-color: #1d4ed8;
}

/* Answer Options Container */
.answer-options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .drop-zone {
        min-height: 100px;
        min-width: 100px;
    }

    .answer-options-container {
        gap: 12px;
    }
}

/* Animation for drag feedback */
@keyframes dragPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.dragging {
    animation: dragPulse 0.6s ease-in-out infinite;
}

/* Success state for completed drops */
.drop-zone.completed {
    border-color: #10b981;
    background-color: #ecfdf5;
}

.drop-zone.completed::after {
    content: "✓";
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #10b981;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}
