/* Z TV — baz la: koulè, tipografi, bouton, badj. Menm jeton yo sèvi sit la ak admin lan. */

:root {
  --bg: #0b0c0f;
  --panel: #121418;
  --panel-2: #16181d;
  --raise: #1c1f26;
  --line: #24272f;
  --line-soft: #1b1e24;
  --txt: #e9ecf1;
  --txt-2: #9aa2b1;
  --txt-3: #6b7383;
  --acc: #c9f24d;
  --acc-ink: #10140a;
  --live: #e23b3b;
  --info: #4aa8ff;
  --warn: #f0b429;
  --r: 14px;
  --r-sm: 10px;
  --shell: 1440px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; font-weight: 700; }

input, select, textarea, button { font: inherit; color: inherit; }

::placeholder { color: var(--txt-3); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #262a33; border-radius: 10px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Mak ---------- */

.brand { display: flex; align-items: center; gap: 10px; }

.brand-tile {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--acc); color: var(--acc-ink);
  border-radius: 9px;
  font-weight: 800; font-size: 18px;
  overflow: hidden;
}

.brand-tile img { width: 100%; height: 100%; object-fit: cover; }

.brand-name { display: block; font-weight: 800; font-size: 17px; letter-spacing: -0.02em; white-space: nowrap; }

.brand-sub { display: block; font-size: 11px; color: var(--txt-3); margin-top: -2px; }

/* ---------- Bouton ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px;
  border-radius: 9px; border: 1px solid transparent;
  background: var(--raise); color: var(--txt);
  font-weight: 600; font-size: 13.5px;
  cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, opacity .15s;
}

.btn:hover { background: #22262f; }

.btn-acc { background: var(--acc); color: var(--acc-ink); }
.btn-acc:hover { background: #d6fa63; }

.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { background: var(--raise); }

.btn-danger { background: #2a1416; color: #ff8a8a; border-color: #44191d; }
.btn-danger:hover { background: #381a1e; }

.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 10px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }

.btn-icon { width: 38px; padding: 0; }
.btn-icon.btn-sm { width: 32px; }

.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Chan ---------- */

.field { display: block; margin-bottom: 16px; }

.field > span,
.lbl {
  display: block;
  font-size: 12px; font-weight: 600;
  color: var(--txt-2);
  margin-bottom: 7px;
  text-transform: uppercase; letter-spacing: .06em;
}

.inp, select.inp, textarea.inp {
  width: 100%;
  height: 40px; padding: 0 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--txt);
  outline: none;
  transition: border-color .15s;
}

textarea.inp { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; line-height: 1.55; }

select.inp { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa2b1' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

.inp:focus { border-color: #3a4150; }

.inp-file { padding: 8px 12px; height: auto; }

.hint { font-size: 12px; color: var(--txt-3); margin-top: 6px; }

.err { font-size: 12px; color: #ff8a8a; margin-top: 6px; }

.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 40px; height: 22px; background: #272b34; border-radius: 99px; position: relative; transition: background .15s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #868e9d; transition: transform .15s, background .15s; }
.switch input:checked + .track { background: #35441a; }
.switch input:checked + .track::after { transform: translateX(18px); background: var(--acc); }
.switch span.lab { font-size: 13.5px; color: var(--txt); text-transform: none; letter-spacing: 0; font-weight: 500; margin: 0; }

/* ---------- Badj ---------- */

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 9px;
  border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  background: var(--raise); color: var(--txt-2);
}

.badge-live { background: #3a1416; color: #ff6b6b; }
.badge-on { background: #2a3614; color: var(--acc); }
.badge-info { background: #10293f; color: #68bbff; }
.badge-warn { background: #3a2c0d; color: #f5c451; }
.badge-off { background: #22252c; color: var(--txt-3); }

.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Panèl ---------- */

.panel {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
}

.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px;
}

.panel-head h2 { font-size: 16.5px; }

.panel-body { padding: 0 20px 20px; }

.link-acc { color: var(--acc); font-size: 13px; font-weight: 600; }
.link-acc:hover { text-decoration: underline; }

/* ---------- Alèt ---------- */

.flash {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; margin-bottom: 18px;
  border-radius: 10px;
  background: #1a2411; border: 1px solid #334420; color: #cdf06f;
  font-weight: 500;
}

.flash-bad { background: #241314; border-color: #44191d; color: #ff9d9d; }

/* ---------- Tablo ---------- */

.table { width: 100%; border-collapse: collapse; }

.table th {
  text-align: left;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--txt-3);
  padding: 0 14px 12px;
  border-bottom: 1px solid var(--line-soft);
}

.table td { padding: 13px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }

.table tr:last-child td { border-bottom: 0; }

.table tbody tr:hover { background: #15171c; }

.table .num { text-align: right; font-variant-numeric: tabular-nums; }

.thumb-sq { width: 46px; height: 32px; border-radius: 6px; background: var(--raise); object-fit: cover; flex: none; }

.cell-title { display: flex; align-items: center; gap: 12px; font-weight: 600; }

.row-acts { display: flex; gap: 6px; justify-content: flex-end; }

/* ---------- Vid ---------- */

.empty { text-align: center; padding: 44px 20px; color: var(--txt-3); }
.empty strong { display: block; color: var(--txt-2); font-size: 15px; margin-bottom: 6px; }

/* ---------- Paj ---------- */

.pager { display: flex; gap: 6px; justify-content: center; padding: 20px 0; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 34px; height: 34px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line-soft);
  font-size: 13px; color: var(--txt-2);
}
.pager a:hover { background: var(--raise); color: var(--txt); }
.pager .on { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); font-weight: 700; }
.pager .off { opacity: .4; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
