/* Responsive, colourful styling for Text to PDF Converter plugin */
.tpdf-container{
  max-width: 880px;
  margin: 24px auto;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(250,250,250,0.95));
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 6px 24px rgba(17,17,17,0.08);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}
.tpdf-title{
  font-size: 1.35rem;
  margin: 0 0 10px 0;
  text-align: center;
}
.tpdf-controls{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:12px;
  justify-content: center;
}
.tpdf-controls input[type="text"],
.tpdf-controls select,
.tpdf-controls input[type="number"]{
  padding:10px 12px;
  border-radius:8px;
  border:1px solid rgba(0,0,0,0.08);
  min-width:120px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
#tpdf-textarea{
  width:100%;
  min-height:280px;
  max-height:60vh;
  padding:14px;
  border-radius:10px;
  border: 1px solid rgba(10,10,10,0.06);
  resize: vertical;
  font-size: 14px;
  line-height:1.5;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(250,250,255,0.5));
}
.tpdf-actions{
  display:flex;
  gap:8px;
  margin-top:12px;
  justify-content: center;
  flex-wrap:wrap;
}
.tpdf-btn{
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight:600;
  box-shadow: 0 6px 18px rgba(10,10,10,0.06);
  transition: transform .08s ease, box-shadow .12s ease, opacity .12s;
  background: #f5f5f5;
  color: #111;
}
.tpdf-btn:hover{ transform: translateY(-2px); }
.tpdf-ghost{
  background: transparent;
  border:1px solid rgba(0,0,0,0.06);
}
.tpdf-primary{
  color: #fff;
}

/* message area */
#tpdf-message{
  min-height:20px;
  margin-top:10px;
  text-align:center;
  font-size:0.95rem;
}
#tpdf-message[data-type="error"]{ color: #c53030; }
#tpdf-message[data-type="success"]{ color: #2f855a; }

/* small screens */
@media (max-width:600px){
  .tpdf-controls{ gap:6px; }
  #tpdf-textarea{ min-height:200px; }
}
