/* bntv.click theme — light + colorful. Original stylesheet. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background: #EEF3FA;
  color: #2B3A4A;
}
a { color: #0088FF; text-decoration: none; }
a:hover { color: #0065BD; text-decoration: underline; }

/* ---------- Layout shell (dashboard / stats / settings) ---------- */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 250px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid #E3EAF3;
  padding: 1.5rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #0088FF, #22CFFF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
  margin-bottom: 2rem;
  padding: 0 0.5rem;
}
.brand:hover { text-decoration: none; }
.nav-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8A99AD;
  padding: 0 0.5rem;
  margin: 0 0 0.5rem;
}
.nav-link {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  color: #2B3A4A;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}
.nav-link:hover { background: #F2F6FC; color: #2B3A4A; text-decoration: none; }
.nav-link.nav-active { background: #E3F0FF; color: #0088FF; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  background: #fff;
  border-bottom: 1px solid #E3EAF3;
  padding: 0.9rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.topbar-title { font-weight: 700; font-size: 16px; }
.topbar-user { font-size: 14px; color: #5B6B82; }
.topbar a { color: #0088FF; font-weight: 600; }
.content { padding: 1.5rem; max-width: 1080px; width: 100%; margin: 0 auto; }
.page-foot { text-align: center; color: #8A99AD; font-size: 13px; padding: 1rem; margin-top: auto; }

/* ---------- Cards & panels ---------- */
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(43, 58, 74, 0.10);
  padding: 2rem;
  max-width: 480px;
  margin: 8vh auto;
}
.panel {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(43, 58, 74, 0.06);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.panel h2:first-child { margin-top: 0; }
.wide { max-width: 1080px; }

/* ---------- Auth pages (login / register / password gate) ---------- */
.auth { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 1rem; }
.auth .card { width: 100%; max-width: 420px; margin: 0; }
.auth .brand { text-align: center; font-size: 30px; margin-bottom: 0.25rem; padding: 0; }
.sub { color: #5B6B82; margin: 0 0 20px; }

/* ---------- Headings & text ---------- */
h1 { margin: 0 0 4px; font-size: 28px; }
h2 { margin-top: 28px; font-size: 18px; }
.muted { color: #5B6B82; }
.foot { margin-top: 18px; font-size: 14px; text-align: center; }
.foot a { color: #0088FF; }

/* ---------- Forms ---------- */
label { display: block; margin: 12px 0; font-size: 14px; font-weight: 600; }
input[type="text"],
input[type="password"],
input[type="url"],
input[type="datetime-local"],
input[type="number"],
textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid #D5DEEB;
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
  color: #2B3A4A;
  font-family: inherit;
}
textarea { resize: vertical; }
input:focus, textarea:focus {
  outline: none;
  border-color: #0088FF;
  box-shadow: 0 0 0 3px rgba(0, 136, 255, 0.18);
}
button {
  background: linear-gradient(135deg, #0088FF, #22CFFF);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
button:hover { filter: brightness(1.06); }
button.danger { background: #E5484D; padding: 7px 12px; font-size: 13px; }
button.danger:hover { background: #C93A40; filter: none; }
.btn {
  display: inline-block;
  background: linear-gradient(135deg, #0088FF, #22CFFF);
  color: #fff !important;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.btn:hover { color: #fff !important; text-decoration: none; filter: brightness(1.06); }
.create { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.create label { flex: 1 1 260px; margin: 0; }
.bulk { margin-top: 16px; }

/* ---------- Alerts ---------- */
.error { background: #FDECEC; color: #9B1C1C; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.info { background: #E3F0FF; color: #0C4A6E; padding: 10px 12px; border-radius: 8px; font-size: 14px; word-break: break-all; }

/* ---------- Stat counters (four pastel cards) ---------- */
.stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 1.25rem; }
.stat { flex: 1 1 160px; border-radius: 12px; padding: 14px 16px; }
.stat .num { font-size: 26px; font-weight: 700; }
.stat .lbl { font-size: 13px; font-weight: 600; }
.stat-blue { background: #E3F0FF; }
.stat-blue .num, .stat-blue .lbl { color: #0088FF; }
.stat-green { background: #E3F9EC; }
.stat-green .num, .stat-green .lbl { color: #1FA855; }
.stat-peach { background: #FFF0E3; }
.stat-peach .num, .stat-peach .lbl { color: #E8730C; }
.stat-purple { background: #F0E9FF; }
.stat-purple .num, .stat-purple .lbl { color: #7C3AED; }

/* ---------- Filters & tables ---------- */
.filters { margin: 12px 0; font-size: 14px; }
.filters a { margin-right: 10px; color: #0088FF; text-decoration: none; }
.filters a.active { font-weight: 700; color: #2B3A4A; }
table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
th { text-align: left; padding: 10px 8px; background: #F2F6FC; font-size: 13px; font-weight: 700; border-bottom: 1px solid #E7EDF5; }
td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #E7EDF5; vertical-align: top; }
td a { color: #0088FF; }
td.dest { max-width: 320px; word-break: break-all; color: #5B6B82; }

/* ---------- Responsive: sidebar becomes a top nav bar ---------- */
@media (max-width: 991px) {
  .layout { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    padding: 1rem;
    border-right: none;
    border-bottom: 1px solid #E3EAF3;
  }
  .sidebar .brand { margin-bottom: 0.75rem; }
  .nav { display: flex; gap: 0.5rem; flex-wrap: wrap; }
  .nav-label { display: none; }
  .nav-link { margin-bottom: 0; }
  .content { padding: 1rem; }
  .topbar { padding: 0.9rem 1rem; }
}
