@font-face {
  font-family: "Tirhuta";
  src: url("/fonts/NotoSansTirhuta-Regular.ttf") format("truetype");
  font-display: swap;
}

:root{
  --bg: #f7f1e3;
  --ink: #2c2c2c;
  --accent: #8b1e1e;
  --border: #b0892e;
  --muted: #6b6b6b;
  --glass: rgba(255,255,255,0.86);
}

*{box-sizing:border-box}
html,body{
    height:100%;
    margin:0;
    font-family:system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial,sans-serif;
    color:var(--ink);
    background:linear-gradient(rgba(247, 241, 227, 0.915),rgba(247, 241, 227, 0.902)),url("./Data/madhubani_painting_1.webp") center/cover fixed no-repeat;
}


/* container */
.container{
  max-width: 960px;
  margin: 32px auto;
  padding: 28px;
  background: var(--bg);
  border: 3px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

header{
  text-align:center;
  margin-bottom: 8px;
}
h1{margin:0;color:var(--accent);font-size:1.6rem;letter-spacing:0.6px}
.subtitle{color:var(--muted);font-size:0.95rem;margin-top:6px}

.grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 22px;
  margin-top: 20px;
  align-items: start;
}

/* left column */
.panel{
  background: var(--glass);
  padding: 16px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06);
}


label.hint{display:block;font-weight:700;margin-bottom:8px;color:var(--accent)}

textarea#input{
  width:100%;
  min-height:160px;
  padding:14px;
  font-size:16px;
  border-radius:10px;
  border:2px solid var(--border);
  background:#fffdf7;
  resize:vertical;
  line-height:1.5;
}

textarea#englishInput{
  width:100%;
  min-height:120px;
  padding:14px;
  font-size:16px;
  border-radius:10px;
  border:2px solid var(--border);
  background:#fffdf7;
  resize:vertical;
  line-height:1.5;
}

.controls{
  margin-top:10px;
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}

.btn{
  background:var(--accent);
  color:#fff;
  border:none;
  padding:8px 12px;
  border-radius:8px;
  cursor:pointer;
  font-weight:600;
  box-shadow: 0 6px 18px rgba(139,30,30,0.18);
}
.btn.ghost{
  background:transparent;
  color:var(--accent);
  border:2px solid var(--border);
  box-shadow:none;
}
.btn.small{padding:6px 10px;font-size:0.95rem}
.btn:disabled{opacity:.6;cursor:not-allowed}

.status-text{
  font-size:0.88rem;
  color:var(--muted);
  min-height:1.2em;
  margin-top:6px;
}

.status-text.error{
  color:var(--accent);
}

.hint-line{font-size:0.92rem;color:var(--muted);margin-top:10px}

/* right column - output */
.output-wrap{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.output-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}

.output-title{font-weight:700;color:var(--accent)}

.copy-wrap{
  display:flex;
  gap:8px;
  align-items:center;
}

button.copy-btn{
  background:linear-gradient(180deg,var(--accent),#5f1515);
  color:#fff;
  border:none;
  padding:8px 12px;
  border-radius:10px;
  cursor:pointer;
  font-weight:700;
  display:inline-flex;
  gap:8px;
  align-items:center;
}

.output {
  padding:18px;
  min-height:160px;
  border-radius:10px;
  border:2px dashed var(--border);
  background:#fffdf7;
  font-family:"Tirhuta", serif;
  font-size:34px;
  line-height:1.6;
  white-space:pre-wrap;
  word-break:break-word;
}

.footer{
  margin-top:20px;
  font-size:0.88rem;
  color:var(--muted);
  text-align:center;
}

.site-footer {
  margin-top: 40px;
  padding: 16px 12px 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer::before {
  content: "";
  display: block;
  width: 120px;
  height: 2px;
  background: var(--border);
  margin: 0 auto 12px;
  opacity: 0.6;
}

/* toast */
.toast{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:28px;
  background:rgba(0,0,0,0.82);
  color:#fff;
  padding:8px 12px;
  border-radius:8px;
  font-size:0.95rem;
  opacity:0;
  pointer-events:none;
  transition:opacity .22s ease;
}
.toast.show{opacity:1;pointer-events:auto}

/* small screens */
@media (max-width:880px){
  .grid{grid-template-columns: 1fr; }
  .output{font-size:28px}
}