/**
 * Lightbox styles for task images
 */

/* Animation for lightbox opening */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-modal {
    animation: fadeIn 0.2s ease-out;
}

/* Task image thumbnail hover effect */
.task-image-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

/* Additional cursor style for any image that might be opened in a lightbox */
img.lightbox-image,
.lightbox-trigger img,
img[data-lightbox],
.task-image-item img,
.relative.group img {
    cursor: pointer;
}

.task-image-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.task-image-item:hover::after {
    opacity: 1;
}

.task-image-item:hover img {
    transform: scale(1.03);
}

.task-image-item img {
    transition: transform 0.3s ease;
}

/* Zoom indicator on image hover */
.task-image-item .zoom-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.task-image-item:hover .zoom-indicator {
    opacity: 1;
}

/* Image counter */
.lightbox-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
}

/**
 * Confirmation Modal Styles
 */

/* Animation for confirmation modal */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.confirmation-modal {
    animation: fadeIn 0.2s ease-out;
}

.confirmation-modal .bg-white {
    animation: modalSlideIn 0.2s ease-out;
}

/* Ensure modal appears above everything */
.confirmation-modal {
    z-index: 60;
}

/* Button hover effects */
.confirmation-modal button {
    transition: all 0.2s ease;
}

.confirmation-modal button:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* Modal backdrop blur effect */
.confirmation-modal {
    backdrop-filter: blur(2px);
}
