/* ============================================================
   MakeQRFree - theme
   Palette: ink #14172B | scan-green #00C896 | paper #F7F8FB
            module-dark #1E2340 | signal-yellow #FFD166
   Type: Sora (display) + Inter (body)
   ============================================================ */

:root {
  --ink: #14172B;
  --module: #1E2340;
  --scan: #00C896;
  --scan-dark: #00A87E;
  --paper: #F7F8FB;
  --signal: #FFD166;
}

html, body { height: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, .navbar-brand { font-family: 'Sora', sans-serif; }

/* ---------- Nav ---------- */
.site-nav { background: var(--ink); }
.site-nav .nav-link { color: rgba(255,255,255,.78); font-weight: 500; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: #fff; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--scan); color: var(--ink); margin-right: 6px;
}
.brand-accent { color: var(--scan); }

.btn-cta {
  background: var(--scan); color: var(--ink); font-weight: 600;
  border: none; border-radius: 10px;
}
.btn-cta:hover { background: var(--scan-dark); color: #fff; }

/* ---------- Hero (signature: QR module field) ---------- */
.hero {
  background:
    /* faint QR-style module grid drifting off the right edge */
    conic-gradient(from 0deg at 50% 50%, transparent 0 100%),
    var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 14px, transparent 14px 28px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 14px, transparent 14px 28px);
  mask-image: linear-gradient(105deg, transparent 45%, #000 85%);
  -webkit-mask-image: linear-gradient(105deg, transparent 45%, #000 85%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-weight: 800; letter-spacing: -.02em; }
.hero .lead { color: rgba(255,255,255,.8); max-width: 560px; }
.hero-eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--scan); margin-bottom: .75rem;
}
.hero-qr-card {
  background: #fff; border-radius: 18px; padding: 1.25rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  transform: rotate(2.5deg);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-qr-card { transition: transform .3s ease; }
  .hero-qr-card:hover { transform: rotate(0deg) scale(1.02); }
}

/* ---------- Feature cards ---------- */
.feature-card {
  background: #fff; border: 1px solid #E7E9F2; border-radius: 16px;
  padding: 1.5rem; height: 100%;
}
.feature-card .icon {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(0,200,150,.12); color: var(--scan-dark);
  font-size: 1.25rem; margin-bottom: .75rem;
}

/* ---------- Auth & generator cards ---------- */
.panel-card {
  background: #fff; border: 1px solid #E7E9F2; border-radius: 18px;
  box-shadow: 0 10px 30px rgba(20,23,43,.06);
}
.form-control:focus, .form-select:focus {
  border-color: var(--scan);
  box-shadow: 0 0 0 .2rem rgba(0,200,150,.15);
}
.btn-ink { background: var(--ink); color: #fff; font-weight: 600; border-radius: 10px; }
.btn-ink:hover { background: var(--module); color: #fff; }

/* ---------- Generator ---------- */
.qr-type-tabs .nav-link {
  color: var(--ink); font-weight: 500; border-radius: 10px;
}
.qr-type-tabs .nav-link.active { background: var(--ink); color: #fff; }
#qrPreview { min-height: 232px; display: grid; place-items: center; }
#qrPreview img, #qrPreview canvas { border-radius: 8px; }
.qr-empty { color: #9AA0B5; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; }

/* ---------- Tables ---------- */
.table thead th {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .06em;
  color: #6B7194;
}

/* ---------- Admin ---------- */
.admin-body { background: #EEF0F6; }
.admin-sidebar {
  background: var(--ink); min-height: 100vh; color: #fff;
  width: 240px; position: fixed; top: 0; left: 0; padding: 1.25rem 1rem;
}
.admin-sidebar .nav-link {
  color: rgba(255,255,255,.72); border-radius: 10px; padding: .55rem .8rem;
  font-weight: 500;
}
.admin-sidebar .nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.admin-sidebar .nav-link.active { color: var(--ink); background: var(--scan); }
.admin-main { margin-left: 240px; padding: 1.75rem; width: calc(100% - 240px); }
@media (max-width: 991px) {
  .admin-sidebar { position: static; width: 100%; min-height: auto; }
  .admin-main { margin-left: 0; width: 100%; }
}
.stat-card {
  background: #fff; border-radius: 16px; padding: 1.25rem;
  border: 1px solid #E3E6F0;
}
.stat-card .value { font-family: 'Sora'; font-size: 1.9rem; font-weight: 700; }
.stat-card .label { color: #6B7194; font-size: .85rem; font-weight: 500; }
.badge-active { background: rgba(0,200,150,.15); color: var(--scan-dark); }
.badge-blocked { background: rgba(220,53,69,.12); color: #C0303E; }
