/* SECTION */
.section-box{
  background:#fafafa;
  border:1px solid #eee;
  border-radius:10px;
  padding:18px;
  margin-bottom:18px;
}

/* LABEL */
.label{
  display:block;
  font-size:14px;
  font-weight:600;
  margin-bottom:10px;
}

/* INPUT ROW */
.input-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:15px;
}

/* INPUT */
.input-box,
.select-box{
  width:100%;
  padding:12px;
  border:1px solid #ccc;
  border-radius:6px;
  box-sizing:border-box;
}

/* BUTTON */
.btns{
  display:flex;
  justify-content:flex-end;
  margin-top:15px;
}

.app{
  padding:12px 20px;
  background:linear-gradient(135deg,#0a3d62,#07517d);
  color:#fff;
  border:none;
  border-radius:4px;
  cursor:pointer;
}

/* STATS */
.stats-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-top:20px;
}

.stat-card{
  background:#fff;
  border:1px solid #ddd;
  border-radius:8px;
  padding:15px;
  text-align:center;
  box-shadow:0 2px 6px rgba(0,0,0,0.05);
}

/* RESULT */
.result-box{
  margin-top:20px;
  background:#fafafa;
  border:1px solid #ddd;
  border-radius:8px;
  padding:15px;
  min-height:120px;
}

/* CARD */
.caption-card{
  background:#fff;
  border:1px solid #ddd;
  border-radius:8px;
  padding:15px;
  margin-bottom:12px;
  animation:fade .3s ease-in;
}

/* TEXT */
.word{
  font-size:15px;
  line-height:1.7;
  word-break:break-word;
}

/* COPY */
.copy-btn{
  margin-top:12px;
  padding:8px 14px;
  border:none;
  border-radius:4px;
  background:#0a3d62;
  color:#fff;
  cursor:pointer;
}

/* LOADER */
.loader{
  text-align:center;
  animation:pulse 1s infinite;
}

@keyframes pulse{
  0%{opacity:.3}
  50%{opacity:1}
  100%{opacity:.3}
}

@keyframes fade{
  from{
    opacity:0;
    transform:scale(.95);
  }
  to{
    opacity:1;
    transform:scale(1);
  }
}

/* MOBILE */
@media(max-width:700px){

  .input-row{
    grid-template-columns:1fr;
  }

  .stats-grid{
    grid-template-columns:1fr;
  }

}
