/* Create flow page styles */

.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px);
    transition: all 0.2s ease-in-out;
}

.card[style*="cursor: pointer"]:hover:not(.opacity-50) {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2) !important;
    transition: all 0.2s ease-in-out;
}

.card[style*="cursor: pointer"]:not(.opacity-50) {
    transition: all 0.2s ease-in-out;
}

/* Cropper container styles */
.crop-container {
    border-radius: 0.375rem;
    overflow: hidden;
}

.crop-container img {
    display: block;
    max-width: 100%;
}

/* Cropper.js overrides for better visibility */
.cropper-view-box,
.cropper-face {
    border-radius: 0;
}

.cropper-line {
    background-color: rgba(255, 255, 255, 0.5);
}

.cropper-point {
    background-color: #667eea;
    width: 10px;
    height: 10px;
}

/* Crop step highlight */
.crop-step-container {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.08) 0%, rgba(40, 167, 69, 0.04) 100%);
    border: 2px solid rgba(40, 167, 69, 0.3);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem !important;
}

/* Crop action buttons */
.crop-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-confirm-crop {
    background: linear-gradient(135deg, #28a745 0%, #20873a 100%);
    border: none;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.35);
    transition: all 0.2s ease;
    animation: subtle-pulse 2s ease-in-out infinite;
}

.btn-confirm-crop:hover {
    background: linear-gradient(135deg, #2dbc4e 0%, #28a745 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
    color: white;
}

.btn-confirm-crop:active {
    transform: translateY(0);
}

@keyframes subtle-pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.35);
    }
    50% {
        box-shadow: 0 4px 20px rgba(40, 167, 69, 0.5);
    }
}

.btn-reset-crop {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Mobile: stack buttons, make confirm full-width and very prominent */
@media (max-width: 767px) {
    .crop-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn-confirm-crop {
        width: 100%;
        font-size: 1.2rem;
        padding: 1rem 1.5rem;
        order: -1; /* Put confirm button first */
    }

    .btn-reset-crop {
        width: 100%;
        padding: 0.75rem 1rem;
    }
}
