/* Panel Noviquo — style stron panelu (logowanie, lista stron). Duże, czytelne, proste. */
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; background: #f1f5f9; color: #1f2937;
  font: 400 18px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
  display: flex; flex-direction: column; align-items: center;
}
h1 { font-size: 28px; margin: 0 0 8px; }
h2 { font-size: 24px; margin: 0 0 4px; }
.hint { color: #6b7280; }
.flash { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 10px; padding: 12px 16px; font-weight: 600; }
.flash.ok { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }

.card {
  background: #fff; border-radius: 18px; box-shadow: 0 4px 20px rgba(0,0,0,.08);
  padding: 32px; width: min(92vw, 460px); margin: 24px 0;
}
.login { margin-top: 8vh; text-align: center; }
.login .logo { height: 42px; margin-bottom: 12px; }
.login form { display: flex; flex-direction: column; gap: 16px; text-align: left; margin-top: 18px; }
.login label { font-weight: 600; }
.login input[type=text], .login input[type=password] {
  width: 100%; margin-top: 6px; padding: 14px 16px; font-size: 19px;
  border: 2px solid #d1d5db; border-radius: 12px;
}
.login input:focus { outline: none; border-color: #2563eb; }
.showpass { font-weight: 400 !important; font-size: 16px; color: #4b5563; }

.btn-big {
  display: block; width: 100%; text-align: center; border: 0; cursor: pointer;
  background: #16a34a; color: #fff; font: 700 20px system-ui, sans-serif;
  padding: 16px; border-radius: 14px; text-decoration: none; margin-top: 6px;
}
.btn-big:hover { background: #15803d; }
.btn-sec {
  display: block; width: 100%; text-align: center; margin-top: 12px;
  background: #e5e7eb; color: #1f2937; font: 600 17px system-ui, sans-serif;
  padding: 13px; border-radius: 14px; text-decoration: none;
}
.btn-sec:hover { background: #d1d5db; }

.topnav {
  width: 100%; background: #14213d; color: #fff; padding: 14px 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 800; letter-spacing: .5px;
}
.topnav .who { font-weight: 400; font-size: 15px; }
.topnav a { color: #93c5fd; }
.dash { width: min(92vw, 520px); padding: 16px 0 40px; }
.dash.wide { width: min(94vw, 980px); }
.dash.wide .card { width: 100%; }
.tiles { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0 18px; }
.tile { flex: 1 1 140px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px 16px; text-align: center; }
.tile .big { display: block; font-size: 34px; font-weight: 800; line-height: 1.2; }
.tile small { color: #6b7280; line-height: 1.4; display: block; }
table.stats { width: 100%; border-collapse: collapse; font-size: 16px; }
table.stats th { text-align: left; color: #6b7280; font-size: 14px; border-bottom: 2px solid #e5e7eb; padding: 8px 10px; }
table.stats td { border-bottom: 1px solid #f1f5f9; padding: 8px 10px; }
table.stats small { color: #9ca3af; }
code { background: #f1f5f9; padding: 4px 8px; border-radius: 8px; font-size: 15px; word-break: break-all; }
.site { text-align: center; }
.siteurl { color: #6b7280; margin: 0 0 18px; word-break: break-all; }

/* Statystyki: wykres słupkowy + listy z paskami */
.chart { display: flex; align-items: flex-end; gap: 6px; height: 150px; margin-top: 16px; padding-top: 18px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.bar { display: block; width: 70%; max-width: 34px; background: linear-gradient(180deg, #34d399, #16a34a); border-radius: 6px 6px 2px 2px; }
.bar-val { font-size: 12px; font-weight: 700; color: #16a34a; margin-bottom: 3px; }
.bar-lbl { font-size: 11px; color: #9ca3af; margin-top: 6px; white-space: nowrap; }
.split3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 26px; }
@media (max-width: 720px) { .split3 { grid-template-columns: 1fr; } }
.split3 h2 { font-size: 19px; }
.hrow { display: grid; grid-template-columns: minmax(90px, 1fr) 2fr auto; gap: 10px; align-items: center; margin: 8px 0; font-size: 15px; }
.hlbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar { background: #f1f5f9; border-radius: 999px; height: 12px; overflow: hidden; }
.hbar i { display: block; height: 100%; background: #16a34a; border-radius: 999px; min-width: 4px; }
.hval { font-weight: 700; white-space: nowrap; }
.hval small { color: #9ca3af; font-weight: 400; }
.admin-tag { font-size: 11px; font-weight: 700; background: #eef2ff; color: #4338ca; padding: 3px 10px; border-radius: 999px; vertical-align: middle; }
.btn-mini { border: 0; border-radius: 8px; background: #374151; color: #fff; font: 600 14px system-ui, sans-serif; padding: 8px 14px; cursor: pointer; }
.btn-mini:hover { background: #1f2937; }
code.ip { font-size: 13px; white-space: nowrap; word-break: normal; }
table.stats td { white-space: nowrap; }
table.stats td:last-child, table.stats td.msg { white-space: normal; }

/* Zapytania gości (leady) */
.badge {
  display: inline-block; background: #d9822b; color: #fff;
  font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px;
  vertical-align: middle;
}
.leads-card { overflow-x: auto; }
table.leads { width: 100%; border-collapse: collapse; font-size: 14px; }
table.leads th, table.leads td {
  text-align: left; padding: 10px 12px; border-bottom: 1px solid #e5e0d3;
  vertical-align: top;
}
table.leads th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
table.leads td.msg { max-width: 420px; white-space: pre-wrap; }
table.leads a { font-weight: 600; }
