/* Custom styling for HEIC converter */

/* Dropzone styling */
.dropzone {
    border: 2px dashed var(--bs-border-color);
    border-radius: 0.5rem;
    background-color: var(--bs-body-bg);
    min-height: 200px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.dropzone:hover {
    border-color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

.dropzone .dz-preview {
    margin: 10px;
}

.dropzone .dz-preview .dz-image {
    border-radius: 8px;
    overflow: hidden;
}

.dropzone .dz-preview .dz-details {
    padding: 1rem;
}

.dropzone .dz-preview.dz-error .dz-error-message {
    top: 150px;
}

/* Converted image card styling */
.converted-image-card {
    transition: transform 0.2s;
    height: 100%;
}

.converted-image-card:hover {
    transform: translateY(-5px);
}

.converted-image-container {
    position: relative;
    padding-top: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    background-color: var(--bs-dark);
}

.converted-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Animation for processing indicator */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

.pulse-animation {
    animation: pulse 1.5s infinite ease-in-out;
}

/* Progress indicator styles */
.file-progress-item {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
    background-color: rgba(var(--bs-dark-rgb), 0.2);
}

/* Responsive image grid */
@media (max-width: 576px) {
    #convertedImagesContainer .col {
        width: 100%;
    }
}

@media (min-width: 576px) and (max-width: 768px) {
    #convertedImagesContainer .col {
        width: 50%;
    }
}

@media (min-width: 768px) {
    #convertedImagesContainer .col {
        width: 33.333%;
    }
}
