/* ========================================================
   Norte Checkin — Design System Principal
   Identidade visual: Norte — "Clareza para decidir. Direção para avançar."
   Ícone:   #13172B (dark navy)  com N em branco diagonal
   Marca:   #2456A4 (azul corporativo Norte)
   Acento:  #13B5CF (teal/ciano)
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- Variáveis de design --- */
:root {
  /* Cores Norte originais */
  --norte-icon-bg:    #13172B;   /* fundo do ícone N */
  --norte-brand:      #2456A4;   /* azul corporativo do logotipo */
  --norte-blue:       #13172B;   /* cor principal sidebar/headers */
  --norte-blue-mid:   #1A2240;
  --norte-blue-light: #2456A4;
  --norte-teal:       #13B5CF;
  --norte-teal-dark:  #0D8FA3;
  --norte-teal-light: #E0F7FB;

  --green-500:  #22C55E;
  --green-100:  #DCFCE7;
  --amber-500:  #F59E0B;
  --amber-100:  #FEF3C7;
  --red-500:    #EF4444;
  --red-100:    #FEE2E2;
  --blue-500:   #3B82F6;
  --blue-100:   #DBEAFE;

  --gray-50:   #F8FAFC;
  --gray-100:  #F1F5F9;
  --gray-200:  #E2E8F0;
  --gray-300:  #CBD5E1;
  --gray-400:  #94A3B8;
  --gray-500:  #64748B;
  --gray-600:  #475569;
  --gray-700:  #334155;
  --gray-800:  #1E293B;
  --gray-900:  #0F172A;

  --sidebar-width: 240px;
  --header-height: 60px;
  --radius:   8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow:    0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --transition: 150ms ease;
}

/* --- Reset e base --- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-800);
  background-color: var(--gray-50);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* --- Scrollbar personalizada --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ========================================================
   LAYOUT — Sidebar + Main
   ======================================================== */

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

/* --- Sidebar --- */
.sidebar {
  width: var(--sidebar-width);
  background: var(--norte-blue);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform var(--transition);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-logo {
  padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  /* Linha de acento teal na base do logo */
  position: relative;
}

.sidebar-logo img {
  height: 44px;
  width: auto;
}

/* Linha de acento teal na bottom do logo area */
.sidebar-logo::after {
  content: '';
  position: absolute;
  bottom: 0; left: 16px; right: 16px;
  height: 1px;
  background: linear-gradient(90deg, #13B5CF 0%, rgba(19,181,207,0) 100%);
}

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
}

.sidebar-section-label {
  padding: 16px 20px 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 0;
  transition: background var(--transition), color var(--transition);
  position: relative;
}

.sidebar-link:hover {
  background: rgba(255,255,255,.08);
  color: white;
}

.sidebar-link.active {
  background: rgba(19, 181, 207, .15);
  color: var(--norte-teal);
  font-weight: 600;
}

.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--norte-teal);
  border-radius: 0 2px 2px 0;
}

.sidebar-link svg, .sidebar-link .icon {
  width: 17px;
  height: 17px;
  opacity: 0.85;
  flex-shrink: 0;
}

.sidebar-link.active svg { opacity: 1; }

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.sidebar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2456A4, #13B5CF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.sidebar-user-info { overflow: hidden; }
.sidebar-user-name {
  font-size: 13px;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-role {
  font-size: 11px;
  color: rgba(255,255,255,.5);
}

/* --- Main content --- */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.top-bar {
  height: var(--header-height);
  background: white;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
}

.top-bar-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-content {
  padding: 24px;
  flex: 1;
}

/* ========================================================
   COMPONENTS
   ======================================================== */

/* --- Cards --- */
.card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body { padding: 20px; }
.card-body-sm { padding: 12px 16px; }
.card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* --- Metric cards --- */
.metric-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-icon.blue   { background: var(--blue-100);  color: var(--blue-500); }
.metric-icon.green  { background: var(--green-100); color: var(--green-500); }
.metric-icon.amber  { background: var(--amber-100); color: var(--amber-500); }
.metric-icon.red    { background: var(--red-100);   color: var(--red-500); }
.metric-icon.teal   { background: var(--norte-teal-light); color: var(--norte-teal); }

.metric-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.metric-label {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
  margin-top: 2px;
}

.metric-sub {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 4px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition),
              box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--norte-teal); outline-offset: 2px; }

.btn-primary {
  background: var(--norte-blue);
  color: white;
  border-color: var(--norte-blue);
}
.btn-primary:hover { background: var(--norte-blue-mid); }

.btn-teal {
  background: var(--norte-teal);
  color: white;
  border-color: var(--norte-teal);
}
.btn-teal:hover { background: var(--norte-teal-dark); }

.btn-success {
  background: var(--green-500);
  color: white;
  border-color: var(--green-500);
}
.btn-success:hover { background: #16A34A; }

.btn-danger {
  background: var(--red-500);
  color: white;
  border-color: var(--red-500);
}
.btn-danger:hover { background: #DC2626; }

.btn-outline {
  background: white;
  color: var(--gray-700);
  border-color: var(--gray-300);
}
.btn-outline:hover { background: var(--gray-50); border-color: var(--gray-400); }

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--gray-100); }

.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 15px; font-weight: 600; }
.btn-xl { padding: 16px 32px; font-size: 17px; font-weight: 700; border-radius: 10px; }

/* --- Badges / status --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-green  { background: var(--green-100);  color: #15803D; }
.badge-red    { background: var(--red-100);    color: #B91C1C; }
.badge-amber  { background: var(--amber-100);  color: #92400E; }
.badge-blue   { background: var(--blue-100);   color: #1D4ED8; }
.badge-gray   { background: var(--gray-100);   color: var(--gray-600); }
.badge-teal   { background: var(--norte-teal-light); color: var(--norte-teal-dark); }

/* --- Forms --- */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 5px;
}
.form-label .required { color: var(--red-500); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 8px 12px;
  font-size: 13.5px;
  font-family: var(--font-sans);
  color: var(--gray-800);
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}

.form-control:focus {
  border-color: var(--norte-teal);
  box-shadow: 0 0 0 3px rgba(19, 181, 207, .15);
}

.form-control:disabled {
  background: var(--gray-100);
  color: var(--gray-500);
  cursor: not-allowed;
}

.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748B' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 32px; cursor: pointer; }

.form-hint {
  font-size: 11.5px;
  color: var(--gray-400);
  margin-top: 4px;
}
.form-error {
  font-size: 11.5px;
  color: var(--red-500);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --- Tables --- */
.table-wrapper { overflow-x: auto; }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.table thead th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-500);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
}

.table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  vertical-align: middle;
}

.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--gray-50); }

.table-name { font-weight: 500; color: var(--gray-900); }
.table-sub  { font-size: 12px; color: var(--gray-400); margin-top: 2px; }

/* --- Alerts / flash messages --- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13.5px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
.alert-success { background: var(--green-100);  color: #15803D; border: 1px solid #86EFAC; }
.alert-danger   { background: var(--red-100);    color: #B91C1C; border: 1px solid #FCA5A5; }
.alert-warning  { background: var(--amber-100);  color: #92400E; border: 1px solid #FCD34D; }
.alert-info     { background: var(--blue-100);   color: #1D4ED8; border: 1px solid #93C5FD; }

/* --- Pagination --- */
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  padding: 12px 0;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--gray-600);
  text-decoration: none;
  background: white;
  transition: background var(--transition), border-color var(--transition);
}

.page-btn:hover { background: var(--gray-50); border-color: var(--gray-300); }
.page-btn.active {
  background: var(--norte-blue);
  border-color: var(--norte-blue);
  color: white;
  font-weight: 600;
}
.page-btn:disabled, .page-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ========================================================
   CHECKIN SCREEN — Components críticos
   ======================================================== */

.checkin-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 24px;
  height: calc(100vh - var(--header-height) - 48px);
}

.checkin-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-box {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  font-size: 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: white;
  font-family: var(--font-sans);
}

.search-input:focus {
  border-color: var(--norte-teal);
  box-shadow: 0 0 0 4px rgba(19, 181, 207, .12);
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  width: 20px;
  height: 20px;
}

.search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  background: none;
  border: none;
  display: none;
}

.search-results {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.participant-result-card {
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.participant-result-card:hover {
  border-color: var(--norte-teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.participant-result-card.selected {
  border-color: var(--norte-blue);
  box-shadow: 0 0 0 3px rgba(11,37,69,.1);
}

.participant-result-card.checked-in {
  border-color: var(--green-500);
  background: #F0FDF4;
}

.participant-name { font-size: 15px; font-weight: 600; color: var(--gray-900); }
.participant-meta { font-size: 12px; color: var(--gray-500); margin-top: 3px; display: flex; gap: 12px; flex-wrap: wrap; }
.participant-meta span { display: flex; align-items: center; gap: 4px; }

.checkin-confirm-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.selected-participant-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.selected-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.selected-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.detail-item { }
.detail-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-400); }
.detail-value { font-size: 14px; color: var(--gray-700); margin-top: 2px; }

.btn-checkin {
  width: 100%;
  padding: 20px;
  font-size: 20px;
  font-weight: 700;
  border-radius: var(--radius-lg);
  background: var(--green-500);
  color: white;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  letter-spacing: -0.3px;
}

.btn-checkin:hover { background: #16A34A; box-shadow: 0 8px 20px rgba(34, 197, 94, .3); }
.btn-checkin:active { transform: scale(0.98); }
.btn-checkin:disabled { background: var(--gray-300); cursor: not-allowed; box-shadow: none; }

/* --- Checkin feedback overlay --- */
.checkin-feedback {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.15s ease;
}

.checkin-feedback-card {
  background: white;
  border-radius: 20px;
  padding: 40px 48px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.2s ease;
}

.feedback-icon {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 16px;
}

.feedback-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feedback-title.success { color: var(--green-500); }
.feedback-title.error   { color: var(--red-500); }
.feedback-title.warning { color: var(--amber-500); }

.feedback-desc {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 24px;
  line-height: 1.6;
}

@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* --- Live feed --- */
.live-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 400px;
  overflow-y: auto;
}

.live-feed-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  animation: slideIn 0.3s ease;
}

.live-feed-item:last-child { border-bottom: none; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-500);
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ========================================================
   AUTH PAGES — Identidade Norte
   ======================================================== */

.auth-page {
  min-height: 100vh;
  /* Gradiente que usa as cores reais da Norte */
  background:
    radial-gradient(ellipse at 20% 80%, rgba(36,86,164,.35) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(19,181,207,.15) 0%, transparent 50%),
    linear-gradient(160deg, #0D1117 0%, #13172B 50%, #1A2240 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

/* Decoração: N grande fantasma no background */
.auth-page::before {
  content: 'N';
  position: absolute;
  right: -40px; top: -40px;
  font-size: 400px;
  font-weight: 900;
  color: rgba(255,255,255,.025);
  font-family: 'Inter', sans-serif;
  line-height: 1;
  letter-spacing: -10px;
  user-select: none;
  pointer-events: none;
}

/* Linha decorativa teal */
.auth-page::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #13B5CF 30%, #2456A4 70%, transparent);
}

.auth-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.05);
  width: 100%;
  max-width: 420px;
  padding: 44px 40px;
  position: relative;
  z-index: 1;
}

.auth-logo {
  text-align: center;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.auth-logo img { display: block; }

.auth-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
  text-align: center;
}

.auth-subtitle {
  font-size: 13.5px;
  color: var(--gray-500);
  text-align: center;
  margin-bottom: 28px;
}

/* ========================================================
   UTILITIES
   ======================================================== */

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.w-full { width: 100%; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11.5px; }
.text-lg { font-size: 16px; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-muted { color: var(--gray-500); }
.text-danger { color: var(--red-500); }
.text-success { color: var(--green-500); }
.text-warning { color: var(--amber-500); }
.text-teal { color: var(--norte-teal); }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono { font-family: var(--font-mono); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* --- Progress bar --- */
.progress { background: var(--gray-200); border-radius: 99px; height: 8px; overflow: hidden; }
.progress-bar {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--norte-teal), var(--green-500));
  transition: width 0.5s ease;
}

/* --- Empty state --- */
.empty-state {
  text-align: center;
  padding: 48px 24px;
}

.empty-state-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.4; }
.empty-state-title { font-size: 16px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.empty-state-desc  { font-size: 13.5px; color: var(--gray-400); max-width: 320px; margin: 0 auto 20px; }

/* --- Divider --- */
.divider {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 16px 0;
}

/* ========================================================
   RESPONSIVE — Tablet (768px+)
   ======================================================== */

@media (max-width: 1024px) {
  .checkin-layout { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .selected-details { grid-template-columns: 1fr; }
  .page-content { padding: 16px; }
  .auth-card { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* --- Sidebar mobile toggle --- */
.sidebar-toggle {
  display: none;
  padding: 8px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--gray-600);
}

@media (max-width: 768px) {
  .sidebar-toggle { display: flex; align-items: center; }
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 99;
}

.sidebar-overlay.visible { display: block; }

/* --- Dropdown menu --- */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
  position: absolute;
  right: 0; top: calc(100% + 6px);
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  z-index: 200;
  padding: 6px;
  display: none;
}
.dropdown-menu.open { display: block; }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13.5px;
  color: var(--gray-700);
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.dropdown-item:hover { background: var(--gray-100); }
.dropdown-item.danger { color: var(--red-500); }
.dropdown-divider { border-top: 1px solid var(--gray-200); margin: 4px 0; }

/* ========================================================
   CHECKIN — Status de operação do evento no topo
   ======================================================== */

.event-status-bar {
  background: var(--norte-blue);
  color: white;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  gap: 20px;
}

.event-status-bar .live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.live-dot-bar {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-500);
  animation: pulse 1.5s infinite;
}

.event-stat-inline {
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-stat-inline strong {
  font-size: 15px;
  font-weight: 700;
  color: white;
}

/* --- Event card --- */
.event-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow var(--transition), border-color var(--transition);
  text-decoration: none;
  color: inherit;
}

.event-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--norte-teal);
}

.event-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
}

.event-card-meta {
  font-size: 12px;
  color: var(--gray-500);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
