/* ===================== IMAGE UPLOADER ===================== */
.image-uploader-wrapper {
    margin-bottom: 20px;
}

/* Preview box - nagy kép megjelenítés */
.uploader-preview-box {
    display: none;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.uploader-preview-box.visible {
    display: block;
    animation: fadeIn 0.3s ease;
}

.uploader-preview-container {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0;
}

.uploader-preview-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Delete button overlay */
.uploader-btn-delete-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    opacity: 0;
}

.uploader-preview-container:hover .uploader-btn-delete-overlay {
    opacity: 1;
}

.uploader-btn-delete-overlay:hover {
    background-color: rgba(220, 38, 38, 0.95);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.uploader-btn-delete-overlay svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

/* Dropzone - csak ha nincs kép */
.uploader-dropzone {
    display: none;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f9fafb;
    position: relative;
    min-height: 200px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.uploader-dropzone.visible {
    display: flex;
}

.uploader-dropzone:hover {
    border-color: var(--bernarior-purple);
    background-color: #f0ebf8;
}

.uploader-dropzone.dragover {
    border-color: var(--bernarior-purple);
    background-color: #ede7f6;
    transform: scale(1.01);
    box-shadow: 0 0 20px rgba(118, 73, 208, 0.2);
}

.uploader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 2;
    pointer-events: none;
}

.uploader-icon {
    width: 56px;
    height: 56px;
    color: var(--bernarior-purple);
    opacity: 0.6;
}

.uploader-title {
    margin: 0;
    font-size: 18px !important;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
}

.uploader-subtitle {
    margin: 0;
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
}

.uploader-status {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    margin-top: 12px;
    display: none;
    animation: slideDown 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.uploader-status.error {
    display: block;
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.uploader-status.success {
    display: block;
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Responsive */
@media (max-width: 768px) {
    .uploader-dropzone {
        padding: 40px 15px;
        min-height: 200px;
    }

    .uploader-preview-container {
        height: 200px;
    }

    .uploader-title {
        font-size: 16px;
    }

    .uploader-subtitle {
        font-size: 12px;
    }

    .uploader-icon {
        width: 48px;
        height: 48px;
    }
}