/* Cyber Tech Neon Grid UI with AMOLED Dark & Light Modes */
* { box-sizing: border-box; }
html, body { height: 100%; }

:root {
  --bg-1: #000000;
  --bg-2: #05080c;
  --grid: rgba(0, 255, 213, 0.08);
  --text: #cae9f4;
  --muted: #7aa0ad;
  --accent: #00ffd5; /* neon cyan */
  --accent-2: #7c3aed; /* violet */
  --accent-3: #ff00ea; /* magenta */
  --danger: #ff3b3b;
}

/* Light theme variables */
body.theme-light {
  --bg-1: #f7fafc;
  --bg-2: #f0f5fb;
  --grid: rgba(0, 60, 60, 0.06);
  --text: #0f172a;
  --muted: #475569;
  --accent: #0ea5e9; /* light cyan */
  --accent-2: #6366f1; /* indigo */
  --accent-3: #fb7185; /* rose */
  --danger: #ef4444;
}

body.cyber {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 700px at 15% 20%, var(--bg-2) 0%, var(--bg-2) 40%, var(--bg-1) 100%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-weight: 400;
}
/* Grid overlay */
body.cyber::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, var(--grid) 0px, var(--grid) 1px, transparent 1px, transparent 24px),
    repeating-linear-gradient(90deg, var(--grid) 0px, var(--grid) 1px, transparent 1px, transparent 24px);
  mix-blend-mode: screen;
}
/* Scanning line */
body.cyber::after {
  content: "";
  position: fixed; left: 0; right: 0; top: -20%; height: 15%; pointer-events: none; z-index: -1;
  background: linear-gradient(to bottom, transparent, rgba(0,255,213,0.07), transparent);
  filter: blur(2px);
  animation: scan 6s linear infinite;
}
@keyframes scan { 0% { transform: translateY(0); } 100% { transform: translateY(140vh); } }

/* Header */
.app-header { 
  position: sticky; 
  top: 0; 
  z-index: 10; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: clamp(0.5rem, 2vw, 1.5rem); 
  padding: 16px clamp(16px, 4vw, 24px); 
  color: var(--text);
  flex-wrap: wrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.app-header.glass { backdrop-filter: blur(12px); background: rgba(11,18,26,0.55); border-bottom: 1px solid rgba(0,255,213,0.15); }

/* Responsive Header Adjustments */
@media (max-width: 768px) {
  .app-header {
    gap: 1rem;
    padding: 12px 24px;
    justify-content: space-between;
  }
  
  .brand {
    order: 1;
  }
  
  .header-right {
    order: 2;
    gap: 0.5rem;
  }
  
  .user-info {
    margin: 0;
  }
}

@media (max-width: 480px) {
  .app-header {
    gap: 0.5rem;
    padding: 10px 20px;
  }
  
  .header-right {
    gap: 0.25rem;
  }
  
  .brand h1 {
    font-size: 16px;
  }
  
  .brand-subtitle {
    font-size: 10px;
  }
  
  .user-name {
    font-size: 12px;
  }
  
  .user-roll {
    font-size: 10px;
    padding: 1px 6px;
  }
  
  .event-info {
    font-size: 9px;
  }
}

/* Admin Header Styles */
.app-header {
  background: rgba(12, 20, 28, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 255, 213, 0.2);
  padding: 1rem clamp(16px, 4vw, 24px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  width: 100%;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 32px);
  width: 100%;
  box-sizing: border-box;
  flex-wrap: wrap;
}

/* Responsive Admin Header */
@media (max-width: 768px) {
  .header-content {
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .logo-section {
    order: 1;
  }
  
  .header-actions {
    order: 2;
  }
}

@media (max-width: 480px) {
  .header-content {
    gap: 0.5rem;
    padding: 0 0.75rem;
  }
  
  .logo-text {
    font-size: 1.25rem;
  }
  
  .logo-subtitle {
    font-size: 0.7rem;
    margin-left: 1.75rem;
  }
}

.logo-section {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  font-size: 1.5rem;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0, 255, 213, 0.5);
}

.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.logo-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-left: 2.25rem;
  opacity: 0.8;
}
.header-actions { 
  display: inline-flex; 
  align-items: center; 
  gap: 10px; 
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand .logo { font-size: 20px; }
.brand-text { display: flex; flex-direction: column; }
.brand h1 { font-family: 'Orbitron', sans-serif; font-weight: 800; font-size: 18px; margin: 0; letter-spacing: 1.2px; text-transform: uppercase; text-shadow: 0 0 10px rgba(0,255,213,0.25); }
.brand-subtitle { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); letter-spacing: 0.8px; text-transform: uppercase; margin-top: -2px; font-weight: 500; }

/* User Info in Header */
.user-info { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0 16px; }
.user-details { display: flex; align-items: center; gap: 8px; }
.user-name { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px; color: var(--accent); text-shadow: 0 0 8px rgba(0,255,213,0.3); }
.user-roll { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text); background: rgba(0,255,213,0.1); padding: 2px 8px; border-radius: 6px; border: 1px solid rgba(0,255,213,0.2); font-weight: 500; }
.event-info { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--muted); text-align: center; letter-spacing: 0.5px; font-weight: 400; }

.history-link img { width: 24px; height: 24px; filter: drop-shadow(0 2px 6px rgba(0,255,213,0.35)); }

/* Screen & Card */
.screen { 
  padding: 20px; 
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.view.card {
  position: relative; max-width: 980px; padding: 22px; border-radius: 18px;
  backdrop-filter: blur(18px); background: rgba(12,20,28,0.4);
  border: 1px solid rgba(0,255,213,0.2);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3), inset 0 0 15px rgba(0,255,213,0.08);
  transition: all 0.3s ease;
}
.view.card:hover {
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.4), inset 0 0 20px rgba(0,255,213,0.12);
  transform: translateY(-2px);
}
.view.card::before, .view.card::after { content: ""; position: absolute; width: 26px; height: 26px; border: 2px solid var(--accent); opacity: 0.6; }
.view.card::before { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.view.card::after { bottom: 10px; right: 10px; border-left: none; border-top: none; }
.view.hidden { display: none !important; }

.headline { font-family: 'Orbitron', sans-serif; font-weight: 700; text-align: center; font-size: 22px; margin: 6px 0 18px; color: var(--text); letter-spacing: 1.5px; text-transform: uppercase; }

/* CTAs */
.cta-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }

/* CTA Buttons */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    padding: 8px 12px; 
    border-radius: 10px; 
    border: 1px solid rgba(0,255,213,0.25); 
    font-family: 'Orbitron', sans-serif;
    font-size: 12px; 
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer; 
    width: auto; 
    color: #ffffff; 
    background: rgba(12, 20, 28, 0.4);
    backdrop-filter: blur(12px);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, background .2s ease, backdrop-filter .2s ease; 
    box-shadow: 0 4px 12px rgba(0, 255, 213, 0.1), inset 0 0 8px rgba(0, 255, 213, 0.05);
}

.btn:hover {
    backdrop-filter: blur(18px);
    box-shadow: 0 6px 20px rgba(0, 255, 213, 0.2), inset 0 0 12px rgba(0, 255, 213, 0.1);
}

.btn-primary, .btn-secondary, .btn-ghost, .btn-tertiary {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-width: 120px;
  text-align: center;
}
.btn .icon-svg { width: 20px; height: 20px; margin-right: 8px; filter: drop-shadow(0 0 2px rgba(0,255,255,0.3)); }
.icon-white { filter: brightness(0) invert(1) drop-shadow(0 0 2px rgba(255,255,255,0.4)); }
.btn-primary { background: linear-gradient(135deg, rgba(0,255,213,0.25) 0%, rgba(124,58,237,0.25) 100%); backdrop-filter: blur(15px); color: #e9fbff; box-shadow: 0 0 20px rgba(0,255,213,0.25), inset 0 0 14px rgba(0,255,213,0.12); }
.btn-primary:hover { transform: translateY(-2px); filter: saturate(1.2); backdrop-filter: blur(20px); box-shadow: 0 0 26px rgba(0,255,213,0.35), 0 0 22px rgba(124,58,237,0.35); }
.btn-secondary { background: linear-gradient(135deg, rgba(255,0,234,0.25) 0%, rgba(124,58,237,0.25) 100%); backdrop-filter: blur(15px); color: #f8eaff; box-shadow: 0 0 20px rgba(255,0,234,0.25), inset 0 0 14px rgba(255,0,234,0.12); }
.btn-secondary:hover { transform: translateY(-2px); filter: saturate(1.2); backdrop-filter: blur(20px); box-shadow: 0 0 26px rgba(255,0,234,0.35), 0 0 22px rgba(124,58,237,0.35); }
.btn-tertiary { background: linear-gradient(135deg, rgba(34,197,94,0.25) 0%, rgba(16,185,129,0.25) 100%); backdrop-filter: blur(15px); color: #ecfdf5; box-shadow: 0 0 20px rgba(34,197,94,0.25), inset 0 0 14px rgba(34,197,94,0.12); }
.btn-tertiary:hover { transform: translateY(-2px); filter: saturate(1.2); backdrop-filter: blur(20px); box-shadow: 0 0 26px rgba(34,197,94,0.35), 0 0 22px rgba(16,185,129,0.35); }
.btn-ghost { background: transparent; backdrop-filter: blur(8px); color: var(--text); border-color: rgba(0,255,213,0.25); width: auto; margin: 0; }
.btn-ghost:hover { background: rgba(0, 255, 213, 0.1); backdrop-filter: blur(12px); border-color: rgba(0, 255, 213, 0.4); }
.btn-danger { background: linear-gradient(135deg, var(--danger) 0%, #f97316 100%); backdrop-filter: blur(15px); color: #fff; box-shadow: 0 0 18px rgba(249,115,22,0.35); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; filter: grayscale(0.35); box-shadow: none; }
.btn:disabled:hover { transform: none; }

/* Scanner */
/* Add scanner radius and border variables for consistent rounding */
:root { --scanner-radius: 22px; --scanner-border: 2px; }
.scanner-container {
  position: relative;
  isolation: isolate;
  width: min(60vmin, 360px);
  max-width: 360px;
  aspect-ratio: 1 / 1;
  border-radius: var(--scanner-radius);
  overflow: hidden;
  background: #000;
  margin: 26px auto;
  text-align: center;
  box-shadow: 0 0 24px rgba(0,255,213,0.2), inset 0 0 18px rgba(0,255,213,0.18);
}
#qr-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: clip-path, -webkit-mask;
  /* Primary: clip to inner edge of the neon frame */
  -webkit-clip-path: inset(var(--scanner-border) round calc(var(--scanner-radius) - var(--scanner-border)));
  clip-path: inset(var(--scanner-border) round calc(var(--scanner-radius) - var(--scanner-border)));
  /* Safari fallback: rounded-rect mask to precisely match inner border */
  -webkit-mask:
    radial-gradient(circle calc(var(--scanner-radius) - var(--scanner-border)) at top left, #0000 98%, #000 100%) top left,
    radial-gradient(circle calc(var(--scanner-radius) - var(--scanner-border)) at top right, #0000 98%, #000 100%) top right,
    radial-gradient(circle calc(var(--scanner-radius) - var(--scanner-border)) at bottom left, #0000 98%, #000 100%) bottom left,
    radial-gradient(circle calc(var(--scanner-radius) - var(--scanner-border)) at bottom right, #0000 98%, #000 100%) bottom right,
    linear-gradient(#000 0 0) center;
  -webkit-mask-size: 50% 50%, 50% 50%, 50% 50%, 50% 50%, 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask:
    radial-gradient(circle calc(var(--scanner-radius) - var(--scanner-border)) at top left, #0000 98%, #000 100%) top left,
    radial-gradient(circle calc(var(--scanner-radius) - var(--scanner-border)) at top right, #0000 98%, #000 100%) top right,
    radial-gradient(circle calc(var(--scanner-radius) - var(--scanner-border)) at bottom left, #0000 98%, #000 100%) bottom left,
    radial-gradient(circle calc(var(--scanner-radius) - var(--scanner-border)) at bottom right, #0000 98%, #000 100%) bottom right,
    linear-gradient(#000 0 0) center;
  mask-size: 50% 50%, 50% 50%, 50% 50%, 50% 50%, 100% 100%;
  mask-repeat: no-repeat;
}
.scan-mask { position: absolute; inset: 0; pointer-events: none; }
.scan-mask.neon {
  position: absolute;
  inset: 0;
  border-radius: var(--scanner-radius);
  border: var(--scanner-border) solid rgba(0,255,213,0.65);
  box-shadow: 0 0 24px rgba(0,255,213,0.35), 0 0 22px rgba(124,58,237,0.25);
  overflow: hidden;
}
.scan-mask.neon .scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(0,255,213,0.9), rgba(124,58,237,0.9), transparent);
  box-shadow: 0 0 12px rgba(0,255,213,0.6);
  filter: blur(0.2px);
  animation: sweep 2.8s linear infinite;
}
@keyframes sweep {
  0% { top: 6%; opacity: 0.6; }
  50% { top: 94%; opacity: 1; }
  100% { top: 6%; opacity: 0.6; }
}
.hint { text-align: center; color: var(--muted); }

/* NFC */
.nfc-instructions { text-align: center; margin: 24px 0; }
.nfc-instructions .title { font-family: 'Orbitron', sans-serif; font-size: 20px; font-weight: 700; margin-bottom: 8px; letter-spacing: 1px; }
.nfc-anim { display: inline-grid; place-items: center; margin: 8px auto 12px; width: 120px; height: 120px; border-radius: 50%; position: relative; background: radial-gradient(100px 100px at 50% 50%, rgba(0,255,213,0.12), transparent 70%); }
.nfc-anim::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(0,255,213,0.65); box-shadow: 0 0 24px rgba(0,255,213,0.35), 0 0 32px rgba(124,58,237,0.25); animation: pulseGlow 2.2s ease-in-out infinite; }
.nfc-logo { width: 56px; height: 56px; filter: drop-shadow(0 0 6px rgba(0,245,255,0.6)); animation: float 3.2s ease-in-out infinite; }
@keyframes pulseGlow { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.status { text-align: center; color: var(--text); margin: 8px 0; }

/* History */
.history-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.history-actions.after { justify-content: flex-start; }
.table-wrap { overflow-x: auto; border-radius: 12px; }
.history-table { width: 100%; border-collapse: collapse; background: rgba(10,18,26,0.45); border-radius: 12px; overflow: hidden; }
body.theme-light .history-table { background: rgba(255,255,255,0.7); }
.history-table th, .history-table td { padding: 12px; border-bottom: 1px solid rgba(0,255,213,0.12); font-size: 14px; color: var(--text); }
.history-table th { position: sticky; top: 0; background: rgba(8,14,20,0.65); text-align: left; backdrop-filter: blur(8px); border-bottom: 1px solid rgba(0,255,213,0.3); letter-spacing: 1px; text-transform: uppercase; font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600; }
body.theme-light .history-table th { background: rgba(240,245,251,0.85); border-bottom-color: rgba(14,165,233,0.25); }
.history-table tbody tr:nth-child(odd) { background: rgba(255,255,255,0.04); }
body.theme-light .history-table tbody tr:nth-child(odd) { background: rgba(0,0,0,0.04); }

#btn-back-home { margin-top: 16px; }

/* Footer */
.app-footer { 
  background: linear-gradient(135deg, rgba(12,20,28,0.75) 0%, rgba(5,8,12,0.85) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(0,255,213,0.25);
  box-shadow: 
    0 -8px 32px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.1),
    inset 0 -1px 0 rgba(0,255,213,0.1);
  margin-top: auto;
  padding: 0;
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.app-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.8;
}

.app-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(0,255,213,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(124,58,237,0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.footer-content {
  display: flex;
  justify-content: center;
  padding: 1.5rem 1rem 1rem;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

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

.footer-logo .logo {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 8px rgba(0,255,213,0.4));
}

.footer-logo .brand-name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0,255,213,0.3);
  letter-spacing: 1px;
}

.footer-tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
  letter-spacing: 0.3px;
}

.footer-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-section h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(0,255,213,0.25);
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
  opacity: 0.9;
  transition: all 0.2s ease;
}

.footer-section li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.7rem;
  opacity: 0.7;
}

.footer-section li:hover {
  color: var(--accent);
  opacity: 1;
  transform: translateX(2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(0,255,213,0.2);
  background: rgba(0,0,0,0.15);
  backdrop-filter: blur(15px) saturate(150%);
  -webkit-backdrop-filter: blur(15px) saturate(150%);
  box-shadow: 
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 -1px 8px rgba(0,255,213,0.1);
  position: relative;
  z-index: 2;
}

.copyright {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.copyright p {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
}

.copyright .developer {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text);
}

.copyright .highlight {
  color: var(--accent);
  font-weight: 600;
  text-shadow: 0 0 6px rgba(0,255,213,0.3);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-links .version {
  background: rgba(0,255,213,0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(0,255,213,0.2);
  color: var(--accent);
  font-weight: 600;
}

.footer-links .separator {
  opacity: 0.5;
}

.footer-links .build-date {
  opacity: 0.8;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1rem 1rem;
  }
  
  .footer-info {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 1rem;
  }
  
  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-logo .brand-name {
    font-size: 1.2rem;
  }
  
  .footer-tagline {
    font-size: 0.8rem;
  }
  
  .footer-section h4 {
    font-size: 0.8rem;
  }
  
  .footer-section li {
    font-size: 0.8rem;
  }
}

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(12px); display: none; place-items: center; z-index: 1000; }
.modal-overlay:not(.hidden) { display: grid; }
.modal { width: min(560px, 92vw); border-radius: 16px; padding: 18px; background: rgba(12, 20, 28, 0.8); backdrop-filter: blur(20px); border: 1px solid rgba(0, 255, 213, 0.25); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 0 18px rgba(0, 255, 213, 0.08); }
.modal-title { font-family: 'Orbitron', sans-serif; font-size: 18px; margin: 0 0 8px; letter-spacing: 1px; font-weight: 700; color: var(--accent); text-shadow: 0 0 10px rgba(0, 255, 213, 0.3); }
.modal-desc { margin: 0 0 14px; color: var(--muted); }
.modal-actions { display: flex; justify-content: flex-end; gap: 0.75rem; }

/* Toast */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; padding: 12px 16px; color: #061119; border-radius: 10px; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); box-shadow: 0 10px 20px rgba(0,0,0,0.35); }
.toast.show { opacity: 0.95; visibility: visible; }

/* Responsive */
@media (min-width: 600px) { .cta-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .headline { font-size: 24px; } }
@supports not (aspect-ratio: 1 / 1) {
  .scanner-container { width: 60vmin; }
  .scanner-container::before { content: ""; display: block; padding-bottom: 100%; }
  .scanner-container > * { position: absolute; inset: 0; }
}

/* Registration Form Styles */
.registration-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.form-group label {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 0 8px rgba(0, 255, 213, 0.3);
}

.form-group input {
  padding: 1rem;
  background: rgba(12, 20, 28, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 213, 0.2);
  border-radius: 8px;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 10px rgba(0, 255, 213, 0.05);
}

.form-group input::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(12, 20, 28, 0.8);
  backdrop-filter: blur(15px);
  box-shadow: 0 0 20px rgba(0, 255, 213, 0.3), inset 0 0 15px rgba(0, 255, 213, 0.1);
}

.form-group input:invalid {
  border-color: var(--danger);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3), inset 0 0 10px rgba(239, 68, 68, 0.1);
}

/* CSS Version: v1.0.2 */

.face-canvas {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

/* Face Capture Styles */
.face-capture-container {
  position: relative;
  margin-bottom: 0.5rem;
}

.face-preview {
  width: 200px;
  height: 200px;
  border: 2px dashed rgba(0,255,213,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.25rem;
  background: rgba(12,20,28,0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.face-preview:hover {
  border-color: var(--accent);
  background: rgba(0, 255, 213, 0.08);
  transform: scale(1.02);
}

/* CSS Version: v1.0.3 */

.capture-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  text-align: center;
  padding: 0.5rem 0.25rem;
  z-index: 3;
  position: relative;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.camera-icon {
  width: 48px;
  height: 48px;
  opacity: 0.7;
  filter: brightness(0) saturate(100%) invert(64%) sepia(98%) saturate(1000%) hue-rotate(160deg) brightness(95%) contrast(85%);
}

.face-video {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.face-canvas {
  display: none;
}

.btn-ghost {
  background: transparent;
  border: 2px solid rgba(0,255,213,0.25);
  color: var(--muted);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 255, 213, 0.05);
}

/* Manual Entry Form Spacing */
.manual-entry-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0.5rem 0;
}

.manual-entry-form .form-group {
  margin-bottom: 0.75rem;
}

.manual-entry-form .modal-actions {
  margin-top: 1rem;
  padding-top: 0.5rem;
}

/* Admin Main Content */
.app-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  padding-top: 3rem;
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

/* Admin Login View Centering */
#admin-login {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 200px);
  width: 100%;
}

/* Dashboard Content */
#admin-dashboard {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1rem;
}

/* Admin Login Container */
.admin-login-container {
  max-width: 450px;
  width: calc(100% - 2rem);
  margin: 0 auto;
  padding: 2.5rem;
  background: rgba(12, 20, 28, 0.6);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(0, 255, 213, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(0, 255, 213, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

.login-header {
  text-align: center;
  margin-bottom: 2.5rem;
  width: 100%;
}

.admin-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 10px rgba(0, 255, 213, 0.4));
}

.login-header h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem 0;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.login-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  opacity: 0.8;
}

.admin-login-form {
  width: 100%;
  max-width: 400px;
}

.login-footer {
  margin-top: 2rem;
  text-align: center;
  width: 100%;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.back-link:hover {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(0, 255, 213, 0.4);
}

.back-link .icon-svg {
  width: 16px;
  height: 16px;
}

.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-login-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-login-form label {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
}

.admin-login-form input {
  padding: 1rem;
  background: rgba(12, 20, 28, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 213, 0.2);
  border-radius: 8px;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 10px rgba(0, 255, 213, 0.05);
  text-align: left;
}

.admin-login-form input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(12, 20, 28, 0.8);
  backdrop-filter: blur(15px);
  box-shadow: 0 0 20px rgba(0, 255, 213, 0.3), inset 0 0 15px rgba(0, 255, 213, 0.1);
}

.admin-login-form .btn {
  margin-top: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(0, 255, 213, 0.2), rgba(124, 58, 237, 0.2));
  backdrop-filter: blur(12px);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 255, 213, 0.2), inset 0 0 10px rgba(0, 255, 213, 0.1);
}

.admin-login-form .btn:hover {
  background: linear-gradient(135deg, rgba(0, 255, 213, 0.3), rgba(124, 58, 237, 0.3));
  backdrop-filter: blur(18px);
  box-shadow: 0 6px 25px rgba(0, 255, 213, 0.4), inset 0 0 15px rgba(0, 255, 213, 0.15);
  transform: translateY(-2px);
}

.admin-login-btn {
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  font-size: 0.9rem;
}

.login-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,255,213,0.15);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

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

.back-link .icon-svg {
  width: 16px;
  height: 16px;
}

/* Dashboard Layout */
#admin-dashboard {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1rem;
}

.dashboard-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  margin-bottom: 2rem;
  padding: 1.5rem 2rem;
  background: rgba(12, 20, 28, 0.4);
  backdrop-filter: blur(15px);
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 213, 0.15);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2), inset 0 0 15px rgba(0, 255, 213, 0.06);
}

.dashboard-header h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.dashboard-header h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.dashboard-actions {
  display: flex;
  gap: 1rem;
  margin-left: 2rem;
}

.dashboard-actions .btn {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 255, 213, 0.15), inset 0 0 8px rgba(0, 255, 213, 0.08);
}

.dashboard-actions .btn:hover {
  backdrop-filter: blur(15px);
  box-shadow: 0 6px 18px rgba(0, 255, 213, 0.25), inset 0 0 12px rgba(0, 255, 213, 0.12);
}

/* Dashboard Tabs */
.dashboard-tabs {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  max-width: 800px;
  margin-bottom: 2rem;
  padding: 0.5rem;
  background: rgba(12, 20, 28, 0.3);
  backdrop-filter: blur(12px);
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 213, 0.1);
  box-shadow: inset 0 0 10px rgba(0, 255, 213, 0.05);
  justify-content: center;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: transparent;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 255, 213, 0.1);
  border-radius: 8px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 255, 213, 0.05);
}

.tab-btn:hover {
  background: rgba(0, 255, 213, 0.05);
  backdrop-filter: blur(12px);
  border-color: rgba(0, 255, 213, 0.2);
  color: var(--text);
  box-shadow: 0 4px 12px rgba(0, 255, 213, 0.1);
}

.tab-btn.active {
  background: rgba(0, 255, 213, 0.15);
  backdrop-filter: blur(15px);
  border-color: rgba(0, 255, 213, 0.3);
  color: var(--accent);
  box-shadow: 0 6px 18px rgba(0, 255, 213, 0.2), inset 0 0 10px rgba(0, 255, 213, 0.1);
}

.tab-btn .icon-svg {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 0 4px rgba(0, 255, 213, 0.3));
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Data Section */
.data-section {
  width: 100%;
  max-width: 1200px;
  background: rgba(12, 20, 28, 0.3);
  backdrop-filter: blur(15px);
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 213, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), inset 0 0 15px rgba(0, 255, 213, 0.05);
  overflow: hidden;
  margin: 0 auto;
}

.section-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(0, 255, 213, 0.15);
  background: rgba(0, 255, 213, 0.05);
  backdrop-filter: blur(10px);
}

.section-header h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem 0;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.section-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: rgba(0, 255, 213, 0.08);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 213, 0.2);
  box-shadow: 0 4px 12px rgba(0, 255, 213, 0.1);
}

.stat-item .icon-svg {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 0 6px rgba(0, 255, 213, 0.4));
}

.stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 8px rgba(0, 255, 213, 0.3);
}

.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Data Table Container */
.data-table-container {
  padding: 2rem;
  max-height: 600px;
  overflow-y: auto;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
}

.empty-state .icon-svg {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  margin: 0 0 0.5rem 0;
  color: var(--muted);
}

.empty-state p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.7;
}

.data-stats {
  display: flex;
  gap: 0.75rem;
}

.stat-badge {
  background: linear-gradient(135deg, rgba(0,255,213,0.2), rgba(124,58,237,0.2));
  backdrop-filter: blur(8px);
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(0,255,213,0.3);
  box-shadow: 0 4px 8px rgba(0, 255, 213, 0.1), inset 0 0 8px rgba(0, 255, 213, 0.05);
}

/* Data Table */
.data-table-container {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 213, 0.15);
  background: rgba(12, 20, 28, 0.35);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), inset 0 0 12px rgba(0, 255, 213, 0.05);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  background: transparent;
}

.data-table th {
  background: rgba(0, 255, 213, 0.1);
  backdrop-filter: blur(10px);
  color: var(--accent);
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid rgba(0, 255, 213, 0.3);
  box-shadow: inset 0 0 8px rgba(0, 255, 213, 0.08);
  font-size: 0.8rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.data-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0, 255, 213, 0.08);
  color: var(--text);
  background: rgba(12, 20, 28, 0.2);
  backdrop-filter: blur(8px);
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: rgba(0, 255, 213, 0.05);
}

.data-table tr:hover td {
  background: rgba(0, 255, 213, 0.05);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 10px rgba(0, 255, 213, 0.1);
}

.data-table tr:nth-child(even) {
  background: rgba(0, 255, 213, 0.02);
}

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

/* Status indicators */
.status-success {
  color: #00ff88;
  background: rgba(0, 255, 136, 0.15);
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(0, 255, 136, 0.3);
  box-shadow: 0 2px 6px rgba(0, 255, 136, 0.2), inset 0 0 6px rgba(0, 255, 136, 0.1);
}

.status-pending {
  color: #ffaa00;
  background: rgba(255, 170, 0, 0.15);
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 170, 0, 0.3);
  box-shadow: 0 2px 6px rgba(255, 170, 0, 0.2), inset 0 0 6px rgba(255, 170, 0, 0.1);
}

.status-error {
  color: #ef4444;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .dashboard-actions {
    justify-content: center;
  }
  
  .dashboard-tabs {
    flex-direction: column;
  }
  
  .tab-btn {
    border-radius: 8px;
  }
  
  .tab-btn.active::after {
    display: none;
  }
  
  .section-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .data-stats {
    justify-content: center;
  }
}

/* Form responsive adjustments */
@media (max-width: 768px) {
  .registration-form {
    max-width: 100%;
    padding: 0 1rem;
  }
  
  .face-preview,
  .face-video {
    width: 150px;
    height: 150px;
  }
}

/* Scan results section */
.scan-results {
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(0, 255, 213, 0.05);
  border: 1px solid rgba(0, 255, 213, 0.2);
  border-radius: 12px;
  max-height: 200px;
  overflow-y: auto;
}

.scan-results h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--accent);
  text-align: center;
  letter-spacing: 1px;
}

.scan-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scan-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(0, 255, 213, 0.08);
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  animation: slideInScan 0.3s ease-out;
}

.scan-item-roll {
  font-weight: 600;
  color: var(--text);
}

.scan-item-time {
  color: var(--muted);
  font-size: 11px;
}

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

/* Face capture section improvements */
.face-capture-container h3 {
  color: var(--text);
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-align: center;
  letter-spacing: 1px;
  font-weight: 700;
}

.capture-placeholder p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.face-preview.active {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 255, 213, 0.2);
}

.btn-capture-face,
.btn-retake-face {
  margin-top: 0.25rem;
  min-width: 120px;
}
/* Checkbox styling for history table */
.history-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.history-table th:first-child {
  width: 40px;
  text-align: center;
}

.history-table td:first-child {
  text-align: center;
  padding: 8px;
}

#select-all-checkbox {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.btn-delete-entry {
  background: none;
  border: none;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  transition: all 0.2s ease;
  color: #ff4444;
  font-family: 'Arial', sans-serif;
  line-height: 1;
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-delete-entry:hover {
  background-color: rgba(255, 68, 68, 0.15);
  color: #ff6666;
  transform: scale(1.1);
}

.btn-delete-entry:active {
  background-color: rgba(255, 68, 68, 0.25);
  transform: scale(0.95);
}

/* Ensure table cells are properly aligned */
#history-table td:last-child {
  text-align: center;
  width: 60px;
  padding: 8px;
}