/* ============================================
   Meeting Attendance — Professional Admin Theme
   Inspired by Tabler, shadcn, Preline UI (2026)
   Neutral slate + refined indigo accent
   ============================================ */

:root {
  /* Neutral palette — softer, more professional */
  --bg: #f4f6f8;
  --bg-subtle: #eef1f5;
  --bg-muted: #e8ecf1;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --foreground: #1a1d23;
  --foreground-secondary: #5e6678;
  --muted: #8b95a5;
  --border: #dfe3ea;
  --border-strong: #c8cfd8;

  /* Primary — refined indigo */
  --primary: #4f56e8;
  --primary-hover: #4149d4;
  --primary-light: #eceffe;
  --primary-lighter: #dde1fc;
  --primary-foreground: #ffffff;
  --primary-muted: #8085ec;

  /* Gradients */
  --gradient: linear-gradient(135deg, #4f56e8 0%, #6c5ce7 100%);
  --gradient-soft: linear-gradient(135deg, #eceffe 0%, #f3f0ff 100%);
  --gradient-header: linear-gradient(135deg, #1e2235 0%, #2d2b55 50%, #3b3486 100%);

  /* Status colors */
  --success: #0d9668;
  --success-bg: #eafaf4;
  --success-border: #b0e8d0;
  --error: #e5383b;
  --error-bg: #fef2f2;
  --error-border: #fccaca;
  --warning: #e59500;
  --warning-bg: #fffbeb;
  --info: #3b82f6;
  --info-bg: #eff6ff;

  /* Spacing & Shape */
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  /* Shadows — subtle and layered */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
  --shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.1), 0 8px 16px rgba(0,0,0,0.05);
  --shadow-primary: 0 4px 14px rgba(79, 86, 232, 0.3);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* --- Base --- */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--primary-hover); }

/* --- Layout --- */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

.container-wide {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

/* --- Header Banner --- */
.header-banner {
  background: var(--gradient-header);
  padding: 1.75rem 1.5rem 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(79,86,232,0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(108,92,231,0.15) 0%, transparent 50%);
  pointer-events: none;
}

.header-banner .header-inner {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
}

.header-banner .logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.header-banner .logo-icon {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.header-banner .logo-icon svg {
  width: 18px;
  height: 18px;
  color: white;
}

.header-banner h1 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.header-banner .subtitle {
  color: rgba(255,255,255,0.6);
  font-size: 0.8125rem;
  margin-top: 0.25rem;
  font-weight: 400;
}

/* --- Card --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  margin-bottom: 1rem;
  position: relative;
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow);
}

.card-accent {
  border-top: 3px solid var(--primary);
}

.card-gradient-top {
  overflow: hidden;
}

.card-gradient-top::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--gradient);
  margin: -1.75rem -1.75rem 1.5rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-title .icon {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.card-description {
  font-size: 0.8125rem;
  color: var(--foreground-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.card-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* --- Form --- */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.375rem;
  letter-spacing: 0.005em;
}

.form-group label .required {
  color: var(--error);
  margin-left: 2px;
}

.input-wrapper {
  position: relative;
}

.input-wrapper .input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--muted);
  pointer-events: none;
  transition: color 0.15s;
}

.input-wrapper input[type="text"],
.input-wrapper input[type="email"],
.input-wrapper input[type="tel"],
.input-wrapper input[type="number"],
.input-wrapper input[type="password"] {
  padding-left: 2.5rem;
}

.input-wrapper:focus-within .input-icon {
  color: var(--primary);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea, select {
  display: block;
  width: 100%;
  height: 2.625rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--foreground);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

input::placeholder, textarea::placeholder {
  color: var(--muted);
}

input:hover, textarea:hover, select:hover {
  border-color: var(--border-strong);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 86, 232, 0.1);
  background: white;
}

textarea {
  height: auto;
  min-height: 5rem;
  resize: vertical;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 2.625rem;
  padding: 0.5rem 1.25rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.005em;
}

.btn:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-primary);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn-secondary {
  background: var(--surface);
  color: var(--foreground);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
  box-shadow: none;
}

.btn-sm {
  height: 2.125rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

.btn-xs {
  height: 1.75rem;
  padding: 0.2rem 0.5rem;
  font-size: 0.6875rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.btn-inline { width: auto; }

.btn-loading {
  color: transparent !important;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.btn-secondary.btn-loading::after {
  border-color: rgba(0,0,0,0.12);
  border-top-color: var(--foreground);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* --- Danger Button --- */
.btn-danger {
  background: var(--error);
  color: #fff;
  border: none;
}

.btn-danger:hover {
  background: #c5303a;
  box-shadow: 0 4px 12px rgba(229, 56, 59, 0.25);
}

/* --- Ghost Button --- */
.btn-ghost {
  background: transparent;
  color: var(--foreground-secondary);
  border: none;
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--bg-subtle);
  color: var(--foreground);
  box-shadow: none;
  transform: none;
}

/* --- Messages --- */
.success-msg {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: #065f46;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
  animation: slideDown 0.25s ease-out;
}

.success-msg::before {
  content: "";
  width: 18px;
  height: 18px;
  background: var(--success);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  flex-shrink: 0;
}

.error-msg {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: #991b1b;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
  animation: slideDown 0.25s ease-out;
}

.error-msg::before {
  content: "";
  width: 18px;
  height: 18px;
  background: var(--error);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='15' y1='9' x2='9' y2='15'/%3E%3Cline x1='9' y1='9' x2='15' y2='15'/%3E%3C/svg%3E");
  mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='15' y1='9' x2='9' y2='15'/%3E%3Cline x1='9' y1='9' x2='15' y2='15'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  flex-shrink: 0;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Field Errors --- */
.field-error {
  color: var(--error);
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.input-error {
  border-color: var(--error) !important;
}

.input-error:focus {
  box-shadow: 0 0 0 3px rgba(229, 56, 59, 0.1) !important;
}

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.badge-success::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.attendee-count {
  background: var(--primary);
  color: #fff;
  padding: 0.0625rem 0.5rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 0.375rem;
  min-width: 1.375rem;
  justify-content: center;
  letter-spacing: 0.01em;
}

/* --- Meeting Info Grid --- */
.meeting-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
}

.info-item {
  padding: 0.75rem 0.875rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.info-item .info-label {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.1875rem;
}

.info-item .info-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--foreground);
}

/* --- QR Section --- */
.qr-section {
  text-align: center;
  padding: 1.5rem 0 0.5rem;
}

.qr-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--foreground-secondary);
  margin-bottom: 1.25rem;
}

.qr-frame {
  display: inline-block;
  padding: 0.875rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  position: relative;
}

.qr-frame::before,
.qr-frame::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--primary);
}

.qr-frame::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
  border-radius: 5px 0 0 0;
}

.qr-frame::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
  border-radius: 0 0 5px 0;
}

#qr-code {
  display: flex;
  justify-content: center;
}

.meeting-url {
  display: block;
  margin: 1rem auto 0;
  padding: 0.5rem 0.875rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', Consolas, monospace;
  color: var(--foreground-secondary);
  word-break: break-all;
  max-width: 360px;
  text-align: center;
}

.qr-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* --- Attendees Section --- */
.attendees-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.attendees-header h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.attendees-header h3 svg {
  width: 17px;
  height: 17px;
  color: var(--primary);
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 2s ease-in-out infinite;
  box-shadow: 0 0 0 2px rgba(13, 150, 104, 0.15);
}

/* --- Table --- */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

thead {
  background: var(--bg);
}

th {
  text-align: left;
  padding: 0.625rem 0.875rem;
  font-weight: 600;
  font-size: 0.6875rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 0.6875rem 0.875rem;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
}

td.name-cell {
  font-weight: 600;
  color: var(--foreground);
}

tbody tr:last-child td { border-bottom: none; }

tbody tr {
  transition: background-color 0.1s;
}

tbody tr:hover td {
  background-color: var(--bg);
}

/* Striped rows (optional — enabled for admin tables) */
.table-striped tbody tr:nth-child(even) td {
  background-color: var(--bg);
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
}

.empty-state-illustration {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.875rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state-illustration svg {
  width: 24px;
  height: 24px;
  color: var(--muted);
}

.empty-state p {
  color: var(--foreground-secondary);
  font-size: 0.8125rem;
  margin-bottom: 0.25rem;
}

.empty-state .empty-hint {
  color: var(--muted);
  font-size: 0.75rem;
}

/* --- Thank You Card --- */
.thank-you-card {
  margin-top: 1.5rem;
}

.thank-you-content {
  text-align: center;
  padding: 1.5rem 0;
}

.thank-you-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  background: var(--success-bg);
  border: 2px solid var(--success-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thank-you-icon svg {
  width: 36px;
  height: 36px;
  color: var(--success);
}

.thank-you-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0 0 0.375rem;
}

.thank-you-subtitle {
  color: var(--foreground-secondary);
  font-size: 0.9375rem;
  margin: 0 0 2rem;
}

.thank-you-details {
  max-width: 360px;
  margin: 0 auto 1.75rem;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.thank-you-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.thank-you-detail-row:last-child {
  border-bottom: none;
}

.thank-you-label {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 500;
}

.thank-you-value {
  font-size: 0.8125rem;
  color: var(--foreground);
  font-weight: 600;
  text-align: right;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thank-you-note {
  color: var(--muted);
  font-size: 0.8125rem;
  margin: 0;
  font-style: italic;
}

/* --- 404 Page --- */
.not-found {
  text-align: center;
  padding: 3rem 1.5rem;
}

.not-found-illustration {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.not-found-illustration svg {
  width: 36px;
  height: 36px;
  color: var(--muted);
}

.not-found h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.not-found p {
  color: var(--foreground-secondary);
  font-size: 0.875rem;
  margin-bottom: 1.75rem;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: 2.5rem 1rem 1rem;
  color: var(--muted);
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.footer a {
  color: var(--muted);
  text-decoration: underline;
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-body {
  background: var(--gradient-header);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.login-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(79,86,232,0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(108,92,231,0.2) 0%, transparent 50%);
  pointer-events: none;
}

.login-wrapper {
  width: 100%;
  max-width: 400px;
  padding: 1.25rem;
  position: relative;
}

.login-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.1);
  padding: 2.5rem 2rem;
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.login-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(79, 86, 232, 0.3);
}

.login-logo-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.login-logo h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.025em;
}

.login-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 0.8125rem;
  margin-bottom: 2rem;
}

/* ============================================
   ADMIN LAYOUT
   ============================================ */

/* --- Admin Header --- */
.admin-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-user-name {
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.btn-logout {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  height: 1.875rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
}

.btn-logout:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  box-shadow: none;
  transform: none;
}

/* --- Admin Navigation --- */
.admin-nav {
  display: flex;
  gap: 0.125rem;
  margin-top: 1rem;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  padding: 0.1875rem;
}

.admin-nav a {
  color: rgba(255,255,255,0.55);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.4375rem 1rem;
  border-radius: 4px;
  transition: all 0.15s;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.admin-nav a:hover {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.08);
}

.admin-nav a.active {
  color: #fff;
  background: rgba(255,255,255,0.14);
  font-weight: 600;
}

/* ============================================
   DASHBOARD
   ============================================ */

/* --- Stats Grid --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.875rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.stat-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

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

.stat-icon svg {
  width: 22px;
  height: 22px;
}

.stat-icon-primary {
  background: var(--primary-light);
  color: var(--primary);
}

.stat-icon-success {
  background: var(--success-bg);
  color: var(--success);
}

.stat-icon-warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.stat-icon-info {
  background: var(--info-bg);
  color: var(--info);
}

.stat-content {
  flex: 1;
  min-width: 0;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--foreground);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Clickable Rows --- */
.clickable-row {
  cursor: pointer;
}

.clickable-row:hover td {
  background-color: var(--primary-light) !important;
}

/* --- Back Link --- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--foreground-secondary);
  transition: color 0.15s;
}

.back-link:hover {
  color: var(--primary);
}

/* --- Section Title (Admin pages) --- */
.section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.02em;
}

/* ============================================
   UTILITIES
   ============================================ */
.hidden { display: none !important; }
.text-muted { color: var(--muted); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.8125rem; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 0.75rem; }
.mt-3 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.75rem; }
.mb-3 { margin-bottom: 1rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }

/* ============================================
   ATTENDEE CARDS (Public Page)
   ============================================ */
.attendee-cards {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 0.5rem;
}

.attendee-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border: 1px solid;
  border-radius: var(--radius);
  transition: transform 0.15s ease;
}

.attendee-card:hover {
  transform: translateX(4px);
}

.attendee-card-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  flex-shrink: 0;
}

.attendee-card-info {
  min-width: 0;
  flex: 1;
}

.attendee-card-name {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}

.attendee-card-detail {
  font-size: 0.75rem;
  color: var(--foreground-secondary);
  margin-top: 0.125rem;
}

.attendee-card-email {
  font-size: 0.6875rem;
  color: var(--muted);
  margin-top: 0.0625rem;
}

.attendee-card-time {
  font-size: 0.625rem;
  color: #4338ca;
  margin-top: 0.375rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  letter-spacing: 0.025em;
  display: inline-block;
}

/* --- Slide-in Animation --- */
@keyframes slideInFromRight {
  0% { opacity: 0; transform: translateX(80px); }
  60% { opacity: 1; transform: translateX(-6px); }
  80% { transform: translateX(3px); }
  100% { transform: translateX(0); }
}

.attendee-card-slide-in {
  animation: slideInFromRight 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* --- Progress Bar --- */
.attendee-progress {
  margin-bottom: 1rem;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: var(--bg-muted);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 999px;
  transition: width 0.5s ease;
  min-width: 0;
}

.progress-bar-fill.progress-complete {
  background: var(--success);
}

.progress-text {
  text-align: center;
  font-size: 0.75rem;
  color: var(--foreground-secondary);
  font-weight: 500;
  margin-top: 0.375rem;
}

/* ============================================
   PRESENTER PAGE — Full-Page Live View
   ============================================ */
.presenter-body-page {
  margin: 0;
  padding: 0;
  background: var(--gradient-header);
  min-height: 100vh;
  overflow: hidden;
}

.presenter-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* --- Top Bar --- */
.presenter-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.presenter-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.presenter-logo-icon {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.presenter-logo-icon svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

.presenter-meeting-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.02em;
}

.presenter-meta {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.presenter-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.presenter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  white-space: nowrap;
}

.presenter-btn:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

.presenter-btn-ghost {
  background: transparent;
  border-color: transparent;
  color: rgba(255,255,255,0.5);
}

.presenter-btn-ghost:hover {
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.06);
}

.presenter-btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
}

.presenter-btn-outline:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* --- Body: Sidebar + Main --- */
.presenter-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* --- Sidebar --- */
.presenter-sidebar {
  width: 240px;
  flex-shrink: 0;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.12);
}

.presenter-qr-wrap {
  padding: 0.625rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.presenter-qr-wrap #presenter-qr-code {
  display: flex;
  justify-content: center;
}

.presenter-url {
  margin-top: 0.75rem;
  padding: 0.375rem 0.625rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  font-size: 0.625rem;
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  color: rgba(255,255,255,0.55);
  word-break: break-all;
  text-align: center;
  width: 100%;
}

/* --- Main Content --- */
.presenter-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1.25rem 1.5rem;
}

.presenter-progress {
  margin-bottom: 1rem;
}

.presenter-progress .progress-bar-container {
  background: rgba(255,255,255,0.1);
  height: 10px;
  border-radius: 999px;
}

.presenter-progress .progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #818cf8, #a78bfa, #c084fc);
  transition: width 0.5s ease;
}

.presenter-progress .progress-bar-fill.progress-complete {
  background: linear-gradient(90deg, #34d399, #10b981);
}

.presenter-progress .progress-text,
.presenter-progress-text {
  color: rgba(255,255,255,0.55);
  font-size: 0.75rem;
  text-align: center;
  margin-top: 0.375rem;
}

/* --- Attendees Header --- */
.presenter-attendees-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.presenter-attendees-header h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.presenter-count-badge {
  background: rgba(255,255,255,0.15);
  color: #fff;
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
}

.presenter-live {
  font-size: 0.75rem;
  color: #34d399;
}

.presenter-live .live-dot {
  background: #34d399;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.2);
}

/* --- Attendee Area --- */
.presenter-attendee-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.presenter-attendee-area::-webkit-scrollbar {
  width: 4px;
}

.presenter-attendee-area::-webkit-scrollbar-track {
  background: transparent;
}

.presenter-attendee-area::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
}

/* --- Presenter Cards Grid --- */
.presenter-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.presenter-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0.75rem;
  border: 1px solid;
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.presenter-card:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* --- Presenter Card Pop-in Animation --- */
@keyframes popIn {
  0% { opacity: 0; transform: scale(0.3) rotate(-8deg); }
  50% { opacity: 1; transform: scale(1.08) rotate(2deg); }
  70% { transform: scale(0.95) rotate(-1deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

.presenter-card.attendee-card-slide-in {
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.presenter-card-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.presenter-card-name {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  word-break: break-word;
}

.presenter-card-detail {
  font-size: 0.6875rem;
  color: var(--foreground-secondary);
  margin-top: 0.125rem;
}

.presenter-card-time {
  font-size: 0.625rem;
  color: #4338ca;
  margin-top: 0.5rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.15);
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  letter-spacing: 0.025em;
}

/* --- Waiting State (Presenter) --- */
.presenter-waiting {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
}

.presenter-waiting-icon {
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.presenter-waiting-icon svg {
  width: 32px;
  height: 32px;
  color: rgba(255,255,255,0.35);
}

.presenter-waiting-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin: 0 0 0.375rem;
}

.presenter-waiting-hint {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
  margin: 0 0 1.25rem;
}

/* --- Bouncing Dots (reused) --- */
.home-waiting-dots {
  display: flex;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 0.75rem;
}

.home-waiting-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-muted);
  animation: waitingBounce 1.4s ease-in-out infinite;
}

.presenter-waiting .home-waiting-dots span {
  background: rgba(255,255,255,0.3);
}

.home-waiting-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.home-waiting-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes waitingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  animation: fadeIn 0.35s ease-out;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .container-wide { max-width: 100%; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .presenter-body { flex-direction: column; }
  .presenter-sidebar {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    overflow-x: auto;
  }
  .presenter-qr-wrap { padding: 0.375rem; }
  .presenter-qr-wrap #presenter-qr-code img { width: 100px !important; height: 100px !important; }
  .presenter-url { display: none; }
  .presenter-sidebar .presenter-btn-outline { display: none; }
  .presenter-main { padding: 1rem; align-items: center; }
  .presenter-progress { width: 100%; }
  .presenter-attendees-header { width: 100%; }
  .presenter-attendee-area { width: 100%; }
  .presenter-cards-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.5rem; }
  .presenter-card { padding: 0.75rem 0.5rem; }
  .presenter-card-number { width: 32px; height: 32px; font-size: 0.8125rem; }
  .presenter-card-name { font-size: 0.8125rem; }
}

@media (max-width: 640px) {
  .container { padding: 0 1rem 2rem; }
  .container-wide { padding: 0 1rem 2rem; }
  .card { padding: 1.25rem; border-radius: var(--radius); }
  .card-gradient-top::before { margin: -1.25rem -1.25rem 1.25rem; border-radius: var(--radius) var(--radius) 0 0; }
  .header-banner { padding: 1.5rem 1rem 1rem; }
  .header-banner h1 { font-size: 1.125rem; }
  .meeting-info-grid { grid-template-columns: 1fr; }
  table { font-size: 0.75rem; }
  th, td { padding: 0.5rem 0.625rem; }
  .qr-frame { padding: 0.75rem; }
  .not-found-illustration { width: 72px; height: 72px; }
  .not-found-illustration svg { width: 30px; height: 30px; }
  .admin-nav { flex-wrap: wrap; }
  .admin-header-row { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
  .admin-user-info { width: 100%; justify-content: space-between; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { padding: 1.25rem; }
  .stat-number { font-size: 1.75rem; }
  .attendee-card { padding: 0.625rem 0.75rem; gap: 0.625rem; }
  .attendee-card-number { width: 30px; height: 30px; font-size: 0.75rem; }
  .attendee-card-name { font-size: 0.8125rem; }
  .attendee-card-detail { font-size: 0.6875rem; }
  .attendee-card-email { font-size: 0.625rem; }
  .presenter-topbar { padding: 0.5rem 0.75rem; justify-content: center; flex-wrap: wrap; gap: 0.5rem; }
  .presenter-topbar-left { gap: 0.5rem; justify-content: center; }
  .presenter-topbar-right { display: none; }
  .presenter-meeting-name { font-size: 0.875rem; text-align: center; }
  .presenter-topbar-right .presenter-btn-ghost { display: none; }
}

@media (max-width: 400px) {
  .card { padding: 1rem; }
  .btn { height: 2.75rem; font-size: 0.875rem; }
  input[type="text"], input[type="email"], input[type="tel"], input[type="password"] {
    height: 2.75rem;
  }
  .qr-actions { flex-direction: column; }
  .qr-actions .btn { width: 100%; }
  .login-card { padding: 2rem 1.25rem; }
  .login-wrapper { padding: 1rem; }
}

/* ============================================
   Signature Pad
   ============================================ */
.signature-group {
  margin-top: 0.5rem;
}
.signature-pad-wrapper {
  border: 2px dashed #d4d4d8;
  border-radius: 8px;
  background: #fafafa;
  padding: 4px;
  display: inline-block;
  max-width: 100%;
  cursor: crosshair;
  transition: border-color 0.2s;
}
.signature-pad-wrapper:hover,
.signature-pad-wrapper:focus-within {
  border-color: #6366f1;
}
.signature-pad-wrapper canvas {
  display: block;
  border-radius: 6px;
  background: #ffffff;
  touch-action: none;
  max-width: 100%;
}
.signature-group .field-error {
  margin-top: 0.25rem;
}
