/* VetHub-inspired dark, high-contrast UI (self-contained) */
:root{
  --bg:#0b1220;
  --panel:#0f1a2e;
  --panel2:#111f36;
  --text:#e9eefc;
  --muted:#a9b6d6;
  --brand:#2d7ff9;
  --brand2:#e33b3b; /* red accent */
  --border:rgba(255,255,255,.10);
  --shadow:0 18px 40px rgba(0,0,0,.35);
  --radius:16px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--sans);
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(45,127,249,.16), transparent 60%),
    radial-gradient(900px 500px at 85% 0%, rgba(227,59,59,.12), transparent 60%),
    linear-gradient(180deg, var(--bg), #060a12);
  color:var(--text);
}

a{color:var(--brand); text-decoration:none}
a:hover{text-decoration:underline}

.container{max-width:1100px; margin:0 auto; padding:24px}
.header{
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; padding:14px 18px;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.brand{
  display:flex; align-items:center; gap:12px;
}
.badge{
  width:44px; height:44px; border-radius:14px;
  background:linear-gradient(135deg, rgba(45,127,249,.95), rgba(227,59,59,.85));
  display:grid; place-items:center;
  font-family:var(--mono); font-weight:700;
}
.brand h1{margin:0; font-size:18px; letter-spacing:.3px}
.brand p{margin:3px 0 0 0; font-size:12px; color:var(--muted)}
.right{
  display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end;
  align-items:center;
}
.pill{
  padding:8px 10px; border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:var(--muted);
  font-size:12px;
}
.grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:18px;
  margin-top:18px;
}
@media (max-width: 980px){ .grid{grid-template-columns:1fr} }

.card{
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}
.card h2{margin:0 0 10px 0; font-size:16px}
.sub{color:var(--muted); font-size:12px; margin:0 0 14px 0}

.row{display:grid; grid-template-columns:1fr 1fr; gap:12px}
@media (max-width: 720px){ .row{grid-template-columns:1fr} }

label{display:block; font-size:12px; color:var(--muted); margin:0 0 6px 2px}
input, textarea, select{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(5,10,20,.55);
  color:var(--text);
  outline:none;
}
textarea{min-height:110px; resize:vertical}
input:focus, textarea:focus, select:focus{border-color: rgba(45,127,249,.6); box-shadow:0 0 0 3px rgba(45,127,249,.12)}

.actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}
button{
  appearance:none; border:0;
  padding:10px 14px;
  border-radius:12px;
  font-weight:650;
  cursor:pointer;
  background:linear-gradient(135deg, rgba(45,127,249,.95), rgba(45,127,249,.70));
  color:white;
}
button.secondary{
  background:rgba(255,255,255,.06);
  border:1px solid var(--border);
  color:var(--text);
}
button.danger{
  background:linear-gradient(135deg, rgba(227,59,59,.95), rgba(227,59,59,.65));
}
button:disabled{opacity:.55; cursor:not-allowed}
.help{
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
  margin-top:10px;
}
.kbd{
  font-family:var(--mono);
  font-size:11px;
  padding:2px 6px;
  border-radius:8px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.05);
  color:var(--text);
}
.hr{height:1px; background:var(--border); margin:14px 0}
pre{
  white-space:pre-wrap;
  word-break:break-word;
  padding:14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(0,0,0,.28);
  margin:0;
}
.tabs{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px}
.tab{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:var(--muted);
  font-size:12px;
  cursor:pointer;
}
.tab.active{border-color: rgba(45,127,249,.6); color:var(--text); background:rgba(45,127,249,.10)}
.small{font-size:12px; color:var(--muted)}
.toast{
  position:fixed; right:18px; bottom:18px;
  padding:10px 12px; border-radius:12px;
  border:1px solid var(--border);
  background:rgba(15,26,46,.92);
  box-shadow:var(--shadow);
  color:var(--text);
  max-width:380px;
  display:none;
}
.toast.show{display:block}

/* Keyword pills */
.keyword-box{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:8px;
}
.keyword-pill{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(45,127,249,.12);
  color:var(--text);
  font-size:12px;
  cursor:pointer;
  user-select:none;
}
.keyword-pill.off{
  opacity:.45;
  text-decoration:line-through;
  background:rgba(255,255,255,.04);
}
