/* ============================================================
   ICOR 25 Anos — Estilos Customizados
   ============================================================ */

:root {
  --icor-red:    #c0392b;
  --icor-dark:   #1a1a2e;
  --icor-gray:   #6c757d;
  --sidebar-w:   240px;
  --topbar-h:    56px;
  --font-base:   'Inter', sans-serif;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-base);
  background: #f4f6f9;
  color: #333;
}

.required::after {
  content: ' *';
  color: var(--icor-red);
}

/* ---- HERO SECTION ---- */
.hero-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(192,57,43,.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge .badge-pill {
  display: inline-block;
  background: rgba(192,57,43,.2);
  border: 1px solid rgba(192,57,43,.5);
  color: #ff7675;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 1.1rem;
  opacity: .8;
  line-height: 1.6;
}

.hero-meta { gap: 16px; }
.meta-item {
  display: flex;
  align-items: center;
  font-size: .95rem;
  opacity: .9;
}

.btn-hero {
  background: var(--icor-red);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all .2s;
  display: inline-block;
}
.btn-hero:hover { background: #a93226; color: #fff; transform: translateY(-1px); }

/* Preview card hero */
.hero-card-preview {
  background: linear-gradient(145deg, #1e3a5f, #2c5282);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  min-width: 260px;
}
.preview-badge {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 8px;
}
.preview-year { font-size: 80px; font-weight: 900; color: var(--icor-red); line-height: 1; }
.preview-anos { font-size: 16px; letter-spacing: 6px; text-transform: uppercase; color: rgba(255,255,255,.7); }
.preview-line { width: 60px; height: 2px; background: var(--icor-red); margin: 16px auto; }
.preview-event { font-size: 13px; color: rgba(255,255,255,.8); }
.preview-date  { font-size: 18px; font-weight: 700; color: #fff; margin-top: 8px; }

/* ---- SECTION INFO ---- */
.info-card {
  border-radius: 12px;
  border: 1px solid #e8ecf0;
  background: #fff;
  transition: transform .2s, box-shadow .2s;
}
.info-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.info-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, #c0392b22, #c0392b11);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--icor-red);
  margin: 0 auto 12px;
}

/* ---- FORM CARD ---- */
.form-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0,0,0,.08);
  background: #fff;
}
.form-card-header {
  background: linear-gradient(135deg, var(--icor-red), #922b21);
  color: #fff;
  padding: 28px 32px;
}
.form-card-body { padding: 32px; }

.section-title {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--icor-red);
  border-bottom: 1px solid #f0e0df;
  padding-bottom: 8px;
  margin-bottom: 0;
}

.consent-box {
  background: #fff8f8;
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  padding: 16px;
}

.btn-submit {
  background: var(--icor-red);
  color: #fff;
  border: none;
  padding: 14px 40px;
  border-radius: 8px;
  font-weight: 600;
  transition: all .2s;
}
.btn-submit:hover { background: #a93226; color: #fff; }

/* ---- FOOTER ---- */
.footer {
  background: #1a1a2e;
  color: rgba(255,255,255,.7);
  margin-top: auto;
}
.footer a { color: rgba(255,255,255,.5); }
.footer a:hover { color: #fff; }

/* ---- SUCESSO ---- */
.sucesso-section { min-height: 60vh; }
.sucesso-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 32px rgba(0,0,0,.08);
}
.sucesso-icon { font-size: 64px; color: #27ae60; margin-bottom: 16px; }
.sucesso-title { font-size: 2rem; font-weight: 700; color: var(--icor-dark); }
.sucesso-subtitle { color: #666; font-size: 1rem; }

.info-box {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  text-align: left;
}
.info-item { text-align: left; }
.info-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; color: #888; }
.info-value { font-weight: 600; color: #333; }
.code-value { font-family: monospace; color: var(--icor-red); font-size: 1.1rem; }

.qr-img-preview {
  width: 140px; height: 140px;
  border: 4px solid #e9ecef;
  border-radius: 8px;
  padding: 4px;
}

/* ---- VERIFICAÇÃO ---- */
.verificacao-result .result-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 16px;
}
.result-status.valid   { background: #d4edda; color: #155724; }
.result-status.present { background: #cce5ff; color: #004085; }
.result-status.pending { background: #fff3cd; color: #856404; }

/* ============================================================
   ADMIN STYLES
   ============================================================ */
.admin-body { background: #f0f2f5; min-height: 100vh; }

/* ---- SIDEBAR ---- */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--icor-dark);
  transition: width .2s ease;
  position: sticky;
  top: 0;
  flex-shrink: 0;
}

.sidebar-brand {
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.logo-text  { font-size: 24px; font-weight: 900; color: var(--icor-red); }
.brand-name { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.8); }

.sidebar-section {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,.35);
  padding: 14px 16px 4px;
  margin-top: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  border-radius: 6px;
  margin: 1px 6px;
  font-size: .875rem;
  transition: all .15s;
}
.sidebar-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar-link.active {
  background: var(--icor-red);
  color: #fff;
}
.sidebar-link.small { font-size: .8rem; }
.sidebar-link.text-danger-soft { color: rgba(255,100,100,.8); }
.sidebar-link.text-danger-soft:hover { color: #ff6b6b; background: rgba(255,100,100,.1); }

.sidebar-menu { overflow-y: auto; padding: 6px 0; }
.sidebar-footer {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 8px 0;
}

/* Collapsed sidebar */
#wrapper.sidebar-collapsed .sidebar { width: 60px; }
#wrapper.sidebar-collapsed .sidebar .brand-name,
#wrapper.sidebar-collapsed .sidebar .sidebar-section,
#wrapper.sidebar-collapsed .sidebar .sidebar-link span { display: none; }
#wrapper.sidebar-collapsed .sidebar-brand { justify-content: center; }
#wrapper.sidebar-collapsed .sidebar-link { justify-content: center; padding: 10px; }

/* ---- TOPBAR ---- */
.admin-topbar {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  height: var(--topbar-h);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ---- STAT CARDS ---- */
.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  border-left: 4px solid transparent;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .2s;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-value { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.stat-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; color: #888; margin-top: 4px; }
.stat-icon  { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 2.5rem; opacity: .12; }

.stat-primary  { border-left-color: #0d6efd; } .stat-primary  .stat-value { color: #0d6efd; }
.stat-success  { border-left-color: #198754; } .stat-success  .stat-value { color: #198754; }
.stat-warning  { border-left-color: #ffc107; } .stat-warning  .stat-value { color: #856404; }
.stat-danger   { border-left-color: #dc3545; } .stat-danger   .stat-value { color: #dc3545; }
.stat-info     { border-left-color: #0dcaf0; } .stat-info     .stat-value { color: #0d7490; }
.stat-secondary{ border-left-color: #6c757d; } .stat-secondary.stat-value { color: #6c757d; }
.stat-dark     { border-left-color: #212529; } .stat-dark     .stat-value { color: #212529; }

/* ---- LOGIN ---- */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  padding: 24px 16px;
}
.login-wrapper {
  width: 100%;
  max-width: 380px;
}
.login-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
}
.login-header {
  background: linear-gradient(135deg, var(--icor-red), #922b21);
  color: #fff;
  padding: 24px 22px 18px;
}
.login-header h4 {
  font-size: 1.2rem;
  font-weight: 700;
}
.login-header p {
  margin-top: 6px;
  margin-bottom: 0;
  color: rgba(255,255,255,.8) !important;
}
.login-logo-text { font-size: 34px; font-weight: 900; color: #fff; }
.login-body-inner {
  background: #fff;
  padding: 22px !important;
}
.login-body .form-label {
  font-size: .86rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #3a3f45;
}
.login-body .input-group-text,
.login-body .form-control,
.login-body .btn {
  min-height: 42px;
}
.login-body .input-group-text {
  padding: .55rem .8rem;
}
.login-body .form-control {
  font-size: .95rem;
  padding: .55rem .8rem;
}
.login-body .btn {
  font-size: .95rem;
  font-weight: 600;
}
.login-body .alert {
  font-size: .9rem;
  margin-bottom: 14px;
}

@media (min-width: 768px) {
  .login-wrapper {
    max-width: 360px;
  }
}

/* ---- CHECK-IN ---- */
.checkin-card .card-body { padding: 24px; }

/* ---- TABELAS ---- */
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.table td { vertical-align: middle; }

/* ---- UTILS ---- */
.card { border: none; box-shadow: 0 2px 8px rgba(0,0,0,.06); border-radius: 12px; }
.card-header { background: transparent; border-bottom: 1px solid #f0f0f0; }
.btn { font-weight: 500; }
.badge { font-weight: 500; }

/* ---- RESPONSIVE ---- */
@media (max-width: 767px) {
  .form-card-body { padding: 20px; }
  .hero-title { font-size: 2rem; }
  .sidebar { position: fixed; z-index: 200; transform: translateX(-100%); }
  #wrapper.sidebar-open .sidebar { transform: translateX(0); }
  .login-body {
    padding: 16px;
  }
  .login-header {
    padding: 22px 18px 16px;
  }
  .login-body-inner {
    padding: 18px !important;
  }
}

@media print {
  .navbar, .footer, .btn, nav { display: none !important; }
  .sucesso-card { box-shadow: none; }
}
