/* ===== Light theme with background image ===== */
:root{
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #0e1726;
  --muted: #5a6577;
  --primary: #2563eb;
  --primary-600: #1d4ed8;
  --ok: #15803d;
  --bad: #b91c1c;
  --pill: #eef2ff;
  --border: #e6eaf2;
  --shadow: 0 10px 30px rgba(12, 21, 47, .08);
}

/* Full-page background image (replace bg.jpg with your own path) */
body{
  margin:0;
  font: 15px/1.55 system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  position: relative;
}
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,255,255,.9)),
    url('https://tari.huflit.edu.vn/aitools/resources/huflitclean.jpg') center / cover no-repeat fixed;
}
.container{
  max-width: 1050px;
  margin: 42px auto;
  padding: 0 20px;
}

h1{ font-size: 32px; margin: 0 0 10px 0; }
h2{ font-size: 20px; margin: 0 0 10px 0; }
.muted{ color: var(--muted); }
.ok{ color: var(--ok); }
.bad{ color: var(--bad); }

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px 18px;
  margin: 16px 0 22px;
}

.pill{
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  margin-left: 8px;
  background: var(--pill);
  color: #1e293b;
  font-size: 12px;
  border: 1px solid #e6eaff;
}

.field label{
  display:block;
  font-weight:600;
  margin: 8px 0 6px;
}
input[type="file"],
textarea{
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: var(--text);
}
textarea{ min-height: 240px; resize: vertical; font-family: ui-monospace, Menlo, Consolas, monospace; }

.actions{ margin-top: 10px; display:flex; align-items:center; gap:10px; }
button{
  appearance: none; border: none; cursor: pointer;
  background: var(--primary); color: #fff;
  padding: 10px 14px; border-radius: 10px; font-weight: 600;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .25);
}
button:hover{ background: var(--primary-600); }
button:disabled{ opacity: .6; cursor: not-allowed; }

.tabbar{ display:flex; gap:.5rem; margin:.5rem 0 10px; }
.tabbar button{
  background: #f3f6ff; color: #22324d; border: 1px solid var(--border);
  box-shadow: none; font-weight: 600; padding:8px 12px;
}
.tabbar button.active{
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 6px 16px rgba(37,99,235,.25);
}

.tablewrap{ overflow:auto; border-radius: 10px; border:1px solid var(--border); }
table{ border-collapse: collapse; width:100%; background:#fff; }
th, td{ border-bottom: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
th{ background:#f5f7fb; font-weight:700; position: sticky; top: 0; z-index:1; }
tr.row-invalid{ background: #fff3f2; }
tr.row-valid{ background: #ffffff; }

footer{ margin: 18px 0 60px; }
code{ background:#f3f6ff; border:1px solid var(--border); padding:2px 6px; border-radius:6px; }

.helper{ font-size: 13px; color: var(--muted); }
/* --- UX trim: hide debug + last-result; banner styling --- */
.debug,
#last-result { display: none !important; }

.banner {
  display:block;
  width:100%;
  max-width:1050px;
  height:auto;
  border-radius:14px;
  box-shadow: var(--shadow);
  margin: 16px auto 6px;
}
