
.section-box{
  background:#fafafa;
  border:1px solid #eee;
  border-radius:10px;
  padding:18px;
  margin-bottom:18px;
}

.label{
  display:block;
  font-size:14px;
  font-weight:600;
  margin-bottom:10px;
}

/* GRID */

.grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px;
}

.thumb{
  aspect-ratio:1;
  border-radius:10px;
  overflow:hidden;
  border:1px solid #ddd;
  background:#f8f8f8;
  position:relative;
}

.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.add{
  display:flex;
  align-items:center;
  justify-content:center;
  border:2px dashed #ccc;
  cursor:pointer;
  font-size:12px;
}

/* BUTTON */

.btn{
  width:100%;
  padding:14px;
  border:none;
  border-radius:10px;
  background:#111;
  color:#fff;
  cursor:pointer;
  font-weight:bold;
}

/* RESULT */

.result-box{
  display:none;
}

.files{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(170px,1fr));
  gap:12px;
  margin-top:15px;
}

.file-card{
  border:1px solid #ddd;
  border-radius:10px;
  background:#fff;
  padding:6px;
}

.file-card img{
  width:100%;
  height:120px;
  object-fit:cover;
  border-radius:8px;
}

.stats{
  margin-top:6px;
  padding:8px;
  background:#f4f4f4;
  border-radius:6px;
  font-size:11px;
  line-height:1.5;
}

.stats b{
  color:#0a3d62;
}

.download{
  display:block;
  margin-top:6px;
  text-align:center;
  background:#0a3d62;
  color:#fff;
  padding:8px;
  border-radius:6px;
  text-decoration:none;
  font-size:12px;
}

/* PROCESSING */

.processing{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.65);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:11px;
  z-index:2;
}

.dots{
  display:flex;
  gap:4px;
  margin-bottom:10px;
}

.dots span{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#fff;
  animation:blink 1s infinite;
}

.dots span:nth-child(2){
  animation-delay:.2s;
}

.dots span:nth-child(3){
  animation-delay:.4s;
}

@keyframes blink{
  0%{opacity:.2;}
  50%{opacity:1;}
  100%{opacity:.2;}
}

.progress{
  width:80%;
  height:6px;
  background:#ffffff33;
  border-radius:20px;
  overflow:hidden;
}

.progress div{
  height:100%;
  width:0%;
  background:#fff;
}