/* Image Preview Styles */
.image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.image-preview-item {
    width: 150px;
    height: 150px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-preview-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.image-preview-item .remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #dc3545;
    padding: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
    z-index: 2;
}

.image-preview-item .remove-image:hover {
    background: rgba(255, 255, 255, 1);
    color: #b02a37;
}

/* File Upload Area Styles */
.file-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background-color: #f8f9fa;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    margin-bottom: 20px;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: #6c757d;
    background-color: #f1f3f5;
}

/* Enlarged Image Modal */
#imagePreviewModal .modal-body {
    background-color: #000;
    padding: 0;
    overflow: hidden;
    border-radius: 0 0 0.3rem 0.3rem;
}

#imagePreviewModal img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

#imagePreviewModal .modal-header {
    border-bottom: 1px solid #2c2c2c;
    background-color: #212529;
    color: white;
}

#imagePreviewModal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}
