/* Webmaster panel — utilitarian, separate from the public theme. */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; background: #eef1f6; color: #1c2430; }
a { color: #123a6b; }
h1 { font-size: 1.4rem; margin: 0 0 18px; }
h2 { font-size: 1.05rem; margin: 26px 0 10px; }

.layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: #0d2a4f; color: #cfe0f5; display: flex; flex-direction: column; }
.side-brand { padding: 18px 16px; border-bottom: 1px solid rgba(255,255,255,.12); }
.side-brand strong { display: block; color: #fff; line-height: 1.25; }
.side-brand small { color: #f2b705; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.sidebar nav { display: flex; flex-direction: column; padding: 10px 8px; gap: 2px; flex: 1; }
.sidebar nav a { color: #cfe0f5; text-decoration: none; padding: 9px 12px; border-radius: 8px; font-size: .92rem; }
.sidebar nav a:hover { background: rgba(255,255,255,.08); }
.sidebar nav a.active { background: #f2b705; color: #1c2430; font-weight: 700; }
.side-foot { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: 6px; font-size: .85rem; }
.side-foot a { color: #cfe0f5; }

.content { padding: 26px 30px; max-width: 1100px; }

.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; }
.flash-ok { background: #e2f4e6; color: #1d5b2a; border: 1px solid #bfe3c8; }
.flash-err { background: #fbe5e3; color: #8a2018; border: 1px solid #f1c2bd; }

.card { background: #fff; border-radius: 12px; padding: 20px 22px; box-shadow: 0 2px 8px rgba(13,42,79,.07); margin-bottom: 22px; }
.card h2:first-child { margin-top: 0; }

table.list { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(13,42,79,.07); }
table.list th { background: #123a6b; color: #fff; text-align: left; padding: 10px 12px; }
table.list td { padding: 9px 12px; border-bottom: 1px solid #eef1f6; vertical-align: middle; }
table.list img.thumb { width: 90px; height: 52px; object-fit: cover; border-radius: 6px; }
.badge { font-size: .7rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; }
.badge-on { background: #e2f4e6; color: #1d5b2a; }
.badge-off { background: #f1f3f7; color: #61708a; }

form .row { display: grid; gap: 4px; margin-bottom: 14px; }
form .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
label { font-weight: 700; font-size: .82rem; }
small.hint { color: #61708a; font-weight: 400; }
input[type=text], input[type=url], input[type=date], input[type=datetime-local],
input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid #cbd4e1; border-radius: 8px;
  font: inherit; background: #fff;
}
input[type=color] { width: 56px; height: 38px; padding: 2px; border: 1px solid #cbd4e1; border-radius: 8px; background: #fff; }
textarea { min-height: 110px; resize: vertical; }
.color-row { display: flex; align-items: center; gap: 10px; }

.btn { display: inline-block; border: 0; border-radius: 9px; padding: 9px 18px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn-primary { background: #123a6b; color: #fff; }
.btn-accent { background: #f2b705; color: #1c2430; }
.btn-danger { background: #fbe5e3; color: #8a2018; }
.btn-sm { padding: 5px 11px; font-size: .8rem; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }

.toggle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.toggle {
  display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid #e2e7f0;
  border-radius: 10px; padding: 12px 14px;
}
.toggle input { margin-top: 3px; transform: scale(1.2); }
.toggle strong { display: block; font-size: .9rem; }
.toggle small { color: #61708a; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { background: #fff; border-radius: 14px; padding: 32px; width: 100%; max-width: 380px; box-shadow: 0 10px 30px rgba(13,42,79,.15); }
.login-card h1 { text-align: center; }

.stat-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.stat-mini .card { margin: 0; text-align: center; }
.stat-mini strong { font-size: 1.8rem; color: #123a6b; display: block; }
.stat-mini span { font-size: .78rem; color: #61708a; text-transform: uppercase; letter-spacing: .05em; }

/* Evaluation bars (shared look with the public results page, admin palette) */
.eval-bars { display: grid; gap: 12px; }
.eval-bar-row { display: grid; grid-template-columns: 1fr 2fr 50px; gap: 12px; align-items: center; }
.eval-bar-label { font-size: .88rem; }
.eval-bar-track { background: #e9edf4; border-radius: 999px; height: 12px; overflow: hidden; }
.eval-bar-fill { background: linear-gradient(90deg, #123a6b, #f2b705); height: 100%; border-radius: 999px; }
.eval-bar-value { font-weight: 700; color: #123a6b; font-size: .88rem; text-align: right; }

@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar nav { flex-direction: row; flex-wrap: wrap; }
  form .grid-2 { grid-template-columns: 1fr; }
  .content { padding: 18px; }
}
