/* REMOVED: The old glass-panel borders and shadows. 
   Now it is transparent to blend with background. */
.glass-panel {
    background: transparent;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
}

/* --- Futuristic Upload Zone (Big Screen) --- */
.upload-zone-futuristic {
    /* Made it much bigger */
    min-height: 450px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    border: 3px dashed #e0e7ff; /* Light border initially */
    background: rgba(255, 255, 255, 0.5); /* Very subtle background */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* The Animation when dragging files over */
.upload-zone-futuristic.drag-active {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
    transform: scale(1.02);
    box-shadow: 0 20px 50px -10px rgba(99, 102, 241, 0.2);
}

/* Icons inside upload zone */
.upload-icon-wrapper {
    transition: transform 0.5s ease;
}
.upload-zone-futuristic:hover .upload-icon-wrapper {
    transform: translateY(-10px) scale(1.1);
}

/* --- Magic Vanishing Effect (Result) --- */
.magic-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15); /* Shadow only on the image itself */
    
    /* Checkerboard */
    background-image: linear-gradient(45deg, #e5e7eb 25%, transparent 25%), 
                      linear-gradient(-45deg, #e5e7eb 25%, transparent 25%), 
                      linear-gradient(45deg, transparent 75%, #e5e7eb 75%), 
                      linear-gradient(-45deg, transparent 75%, #e5e7eb 75%);
    background-size: 20px 20px;
    background-color: white;
}

.img-result-base {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    z-index: 10;
}

.img-original-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    z-index: 20;
    transition: all 2.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
}

.vanish-active {
    opacity: 0;
    filter: blur(10px) brightness(1.2);
    transform: scale(1.05);
    pointer-events: none;
}

/* --- Futuristic Icon Buttons --- */
.action-buttons-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    padding: 5px 14px;
    border-radius: 8px;
}
.icon-btn svg {
    width: 28px;
    height: 28px;
    z-index: 10;
}
/* Download Button Style */
.btn-download {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4);
}
.btn-download:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -5px rgba(79, 70, 229, 0.6);
}
.btn-download:active { transform: scale(0.95); }
/* Reset Button Style */
.btn-reset {
    background: white;
    color: #4b5563;
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.1);
}
.btn-reset:hover {
    background: #f3f4f6;
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -5px #dc2626;
    color: #dc2626; /* Turns red to indicate 'reset' */
}

/* Animations */
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-slide-in { animation: fadeSlideIn 0.8s ease-out forwards; }