/* ============================================================
   License Verification — light theme, sidebar layout
   ============================================================ */
:root {
  --bg: #f4f6f8;
  --panel: #ffffff;
  --panel-2: #f8fafc;
  --border: #e3e8ee;
  --text: #212529;
  --muted: #6c757d;
  --accent: #007bff;
  --green: #28a745;
  --red: #dc3545;
  --amber: #ffc107;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 14.5px;
  min-height: 100vh;
}

h1, h2, h3, h4, h5 { font-weight: 600; letter-spacing: -0.01em; }

/* ---------- layout ---------- */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 236px;
  flex: 0 0 236px;
  background: #ffffff;
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
}
.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
  padding: 2px 8px 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  color: var(--text);
}
.brand-badge {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #007bff, #6610f2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 3px 10px rgba(0, 123, 255, 0.3);
}
.side-nav { display: flex; flex-direction: column; gap: 6px; }
.side-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 9px;
  color: #495057;
  font-weight: 600;
  font-size: 13.5px;
  border: 1px solid transparent;
}
.side-link:hover { background: #f1f4f7; color: var(--text); text-decoration: none; }
.side-link.active {
  background: rgba(0, 123, 255, 0.08);
  color: #0056b3;
  border-color: rgba(0, 123, 255, 0.25);
}
.side-vault {
  margin-top: auto;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.side-vault .v-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.side-vault .v-count { font-size: 26px; font-weight: 800; color: #007bff; line-height: 1.2; }
.side-vault .v-sub { font-size: 12px; color: var(--muted); }
.side-foot { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }

.main { flex: 1; min-width: 0; padding: 26px 28px 12px; }

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
}
.page-head h1 { font-size: 22px; font-weight: 800; margin: 0; color: #1a1f24; }
.page-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }

.checker-grid {
  display: grid;
  grid-template-columns: 370px 1fr;
  gap: 18px;
  align-items: start;
}
.form-col { position: sticky; top: 20px; }

/* ---------- cards ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(16, 24, 40, 0.07);
  overflow: hidden;
}
.card-header {
  background: #fbfcfd;
  border-bottom: 1px solid var(--border);
  padding: 14px 18px;
}
.card-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1a1f24;
  margin-bottom: 2px;
}
.card-subtitle { font-size: 12px; color: var(--muted); margin-top: 2px; }
.card-body { padding: 18px; }
.card-body.p-0 { padding: 0; }

/* ---------- forms ---------- */
label { color: #495057; font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; }
label small { font-weight: 400; }

.form-control {
  background: #ffffff;
  border: 1px solid #ced4da;
  border-radius: 8px;
  color: var(--text);
  padding: 9px 12px;
  font-size: 14px;
}
.form-control:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
.form-control::placeholder { color: #adb5bd; }

/* ---------- buttons (bootstrap defaults, slight rounding) ---------- */
.btn { border-radius: 8px; font-weight: 600; font-size: 13.5px; padding: 8px 16px; }
.btn-sm { padding: 5px 12px; font-size: 12.5px; }

/* ---------- badges ---------- */
.badge { font-weight: 600; font-size: 12px; padding: 5px 10px; }

.state-badge { padding: 6px 13px; }
.state-badge::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  margin-right: 7px;
  background: currentColor;
  opacity: 0.9;
  vertical-align: 1px;
}

/* ---------- stats ---------- */
.stats { display: flex; gap: 10px; flex-wrap: wrap; }
.stat {
  flex: 1;
  min-width: 92px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 10px 14px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}
.stat-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat-value {
  font-size: 22px;
  font-weight: 800;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  color: #1a1f24;
}
.stat.live .stat-value { color: var(--green); }
.stat.die .stat-value { color: var(--red); }
#checkStatus { font-weight: 600; color: var(--muted); }

/* ---------- results tabs ---------- */
.res-tabs { display: flex; list-style: none; margin: 0; padding: 0; gap: 6px; }
.res-tab {
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid transparent;
  user-select: none;
  transition: all 0.15s ease;
}
.res-tab:hover { color: #343a40; }
.res-tab.active { color: #343a40; background: #ffffff; border-color: #dee2e6; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.res-tab.live-tab.active { color: #1e7e34; border-color: rgba(40, 167, 69, 0.4); background: rgba(40, 167, 69, 0.07); }
.res-tab.die-tab.active { color: #bd2130; border-color: rgba(220, 53, 69, 0.4); background: rgba(220, 53, 69, 0.06); }
.tab-count {
  background: #eef1f4;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11.5px;
  margin-left: 6px;
}
.empty-hint { padding: 26px 16px; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- tables ---------- */
.table { color: var(--text); margin-bottom: 0; }
.table thead th {
  border-top: 0;
  border-bottom: 2px solid #dee2e6;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 10px 12px;
  white-space: nowrap;
}
.table td {
  border-top: 1px solid #eef1f4;
  padding: 10px 12px;
  vertical-align: middle;
  font-size: 13px;
}
.table-hover tbody tr:hover { background: rgba(0, 123, 255, 0.04); }

code {
  background: #f1f4f7;
  color: #0f4c81;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 12px;
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

/* ---------- alerts ---------- */
.alert { border-radius: 10px; }

/* ---------- login ---------- */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}
.login-wrap { width: 100%; max-width: 400px; }
.form-signin {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px 30px;
  box-shadow: 0 10px 40px rgba(16, 24, 40, 0.12);
}
.brand-logo {
  width: 58px; height: 58px;
  border-radius: 15px;
  background: linear-gradient(135deg, #007bff, #6610f2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin: 0 auto 16px;
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.35);
}
.form-signin h2 {
  text-align: center;
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #1a1f24;
}
.login-tagline {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 22px;
}
.login-tagline .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 6px;
}

/* ---------- misc ---------- */
.panel-footer {
  text-align: center;
  color: #98a2ab;
  font-size: 12px;
  padding: 22px 0 30px;
}
a.badge:hover { text-decoration: none; filter: brightness(0.95); }
.text-nowrap { white-space: nowrap; }

/* ---------- responsive ---------- */
@media (max-width: 1150px) {
  .checker-grid { grid-template-columns: 1fr; }
  .form-col { position: static; }
}
@media (max-width: 860px) {
  .layout { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .side-brand { border: 0; margin: 0; padding: 0 8px 0 0; }
  .side-nav { flex-direction: row; }
  .side-vault { margin-top: 0; margin-left: auto; padding: 8px 12px; }
  .side-vault .v-count { font-size: 18px; display: inline; }
  .side-vault .v-sub { display: inline; margin-left: 6px; }
  .side-vault .v-label { display: none; }
  .side-foot { border: 0; padding: 0; margin: 0; }
  .main { padding: 18px 16px 8px; }
}
