*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Arial,sans-serif;
}

body{
  background:#0f172a;
  color:white;
  display:flex;
  justify-content:center;
  align-items:center;
  min-height:100vh;
  padding:20px;
}

.container{
  width:100%;
  max-width:1100px;
  background:rgba(255,255,255,0.05);
  backdrop-filter:blur(14px);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:24px;
  padding:30px;
  text-align:center;
  box-shadow:0 0 40px rgba(0,0,0,0.3);
}

h1{
  font-size:38px;
  margin-bottom:10px;
  background:linear-gradient(135deg,#7c3aed,#22d3ee);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

.subtitle{
  color:#cbd5e1;
  margin-bottom:30px;
  font-size:16px;
}

.upload-box{
  border:2px dashed #7c3aed;
  padding:30px;
  border-radius:18px;
  margin-bottom:20px;
  background:rgba(255,255,255,0.03);
}

input{
  color:white;
}

button{
  width:100%;
  padding:15px;
  border:none;
  border-radius:14px;
  background:linear-gradient(135deg,#7c3aed,#22d3ee);
  color:white;
  font-size:17px;
  font-weight:bold;
  cursor:pointer;
  transition:0.3s;
  margin-top:10px;
}

button:hover{
  transform:scale(1.02);
  opacity:0.9;
}

.loading{
  display:none;
  margin-top:20px;
  color:#22d3ee;
  font-size:15px;
}

/* Before After Layout */

.image-container{
  display:flex;
  gap:20px;
  margin-top:30px;
  flex-wrap:wrap;
}

.image-box{
  flex:1;
  min-width:280px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:20px;
  padding:18px;
  box-shadow:0 0 25px rgba(0,255,255,0.08);
}

.image-box h3{
  margin-bottom:15px;
  color:#ffffff;
  font-size:18px;
}

.image-box img{
  width:100%;
  border-radius:16px;
  min-height:250px;
  object-fit:cover;
  background:#111827;
}

/* Download Button */

#downloadBtn{
  display:inline-block;
  margin-top:18px;
  padding:12px 22px;
  border-radius:12px;
  text-decoration:none;
  color:white;
  background:linear-gradient(135deg,#22c55e,#16a34a);
  transition:0.3s;
  font-weight:bold;
}

#downloadBtn:hover{
  transform:scale(1.05);
}

/* Responsive */

@media(max-width:768px){

  .container{
    padding:20px;
  }

  h1{
    font-size:30px;
  }

  .image-container{
    flex-direction:column;
  }

}

#previewImage,
#resultImage{
  display:block;
  width:100%;
  min-height:250px;
  object-fit:cover;
  border-radius:16px;
  margin-top:10px;
}

#previewImage[src=""],
#resultImage[src=""]{
  display:none;
}