/* /var/www/html/apps/new-hair/css/style.css */

:root{
  --accent:#ff9800;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  height:100vh;
  background:#000;            /* black background */
  color:#fff;                 /* white text */
  font-family:Arial, Helvetica, sans-serif;
  display:flex;
  align-items:center;
  justify-content:center;
}

.container{
  width:95%;
  max-width:800px;
  text-align:center;
}

h1{
  margin:0 0 20px;
  color:var(--accent);
  font-size:2rem;
}

.upload-area{
  border:2px dashed #555;
  padding:40px;
  border-radius:15px;
  cursor:pointer;
  transition:0.3s;
  margin-bottom:16px;
  position:relative;
  overflow:hidden;
}
.upload-area p{
  margin:0;
  color:#bbb;
}
.upload-area input[type="file"]{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  cursor:pointer;
}
.upload-area.hover{
  border-color:var(--accent);
  box-shadow:0 0 20px var(--accent);
}

.buttons{
  margin-bottom:10px;
}

button{
  padding:12px 24px;
  border:none;
  border-radius:10px;
  color:#fff;
  cursor:pointer;
  background:linear-gradient(45deg, var(--accent), #f44336);
  transition:0.25s;
}
button:hover{
  transform:scale(1.03);
  box-shadow:0 0 15px var(--accent);
}
button:disabled{
  opacity:0.5;
  cursor:not-allowed;
}

.status{
  margin:10px 0 20px;
  color:#ddd;
  min-height:22px;
}

.image-stage{
  margin-top:10px;
}

#compareWrap{
  position:relative;
  width:100%;
  max-width:700px;
  margin:0 auto 12px;
  overflow:hidden;
  border-radius:12px;
  box-shadow:0 0 20px rgba(255,152,0,0.25);
}
#compareWrap img{
  display:block;
  width:100%;
  height:auto;
}
#beforeImg{
  position:relative;
  z-index:1;
}
#afterImg{
  position:absolute;
  inset:0;
  z-index:2;
  transition:clip-path 0.12s linear;
}

#wipe{
  width:100%;
  margin-top:12px;
}

.controls{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
}
.controls input[type="text"]{
  padding:10px 12px;
  border-radius:8px;
  border:1px solid #333;
  background:#111;
  color:#fff;
  width:130px;
  box-shadow: inset 0 0 10px #000;
}
.controls input[type="color"]{
  width:48px;
  height:42px;
  border:none;
  background:#111;
  border-radius:8px;
}

.result-actions{
  margin-top:16px;
  display:flex;
  gap:12px;
  justify-content:center;
}
.download-btn{
  display:inline-block;
  padding:12px 24px;
  background:#111;
  border:1px solid #444;
  border-radius:10px;
  color:#fff;
  text-decoration:none;
}
.download-btn:hover{
  background:#222;
}

