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


  :root {
    --background: 0 0% 7%;             /* #121212 CourtesyBox dark */
    --foreground: 0 0% 98%;
    --card: 0 0% 12%;                  /* #1F1F1F */
    --card-foreground: 0 0% 98%;
    --popover: 0 0% 12%;
    --popover-foreground: 0 0% 98%;
    --primary: 0 84% 55%;              /* #E63946 CourtesyBox red */
    --primary-foreground: 0 0% 100%;
    --secondary: 0 0% 18%;
    --secondary-foreground: 0 0% 98%;
    --muted: 0 0% 18%;
    --muted-foreground: 0 0% 65%;
    --accent: 0 90% 62%;               /* bright red accent */
    --accent-foreground: 0 0% 100%;
    --destructive: 25 95% 55%;         /* orange for destructive to differ from primary */
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 22%;
    --input: 0 0% 20%;
    --ring: 0 84% 55%;
    --radius: 0.75rem;
  }



  * { border-color: hsl(var(--border)); }
  body {
    background-color: hsl(var(--background)); color: hsl(var(--foreground)); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    font-family: 'Inter', system-ui, sans-serif;
    background:
      radial-gradient(1200px 600px at 10% -10%, rgba(230,57,70,0.12), transparent 60%),
      radial-gradient(900px 500px at 100% 0%, rgba(230,57,70,0.06), transparent 55%),
      #0d0d0d;
    min-height: 100vh;
  }
  h1, h2, h3, h4, .font-display {
    font-family: 'Barlow Condensed', 'Inter', sans-serif;
    letter-spacing: -0.01em;
  }
  .font-mono, code {
    font-family: 'JetBrains Mono', monospace;
  }


/* Portuguese license plate */
.plate-badge {
  display: inline-flex;
  align-items: stretch;
  height: 2.25rem;
  border: 2px solid #000;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.plate-badge .eu {
  background: #003399;
  color: #FFCC00;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  font-size: 0.55rem;
  line-height: 1;
  font-weight: 700;
}
.plate-badge .eu .stars { font-size: 0.7rem; }
.plate-badge .num {
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: #000;
}

.card-glass {
  background: rgba(28, 28, 28, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.scan-frame {
  position: relative;
  overflow: hidden;
  border: 2px dashed rgba(230, 57, 70, 0.55);
  border-radius: 1rem;
  background: repeating-linear-gradient(45deg, rgba(230,57,70,0.03) 0 10px, transparent 10px 20px);
}

.scan-frame::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #E63946, transparent);
  animation: scanline 2.5s linear infinite;
}
@keyframes scanline {
  0% { transform: translateY(0); }
  100% { transform: translateY(300px); }
}

.damage-box {
  position: absolute;
  border: 2px solid #EF4444;
  background: rgba(239,68,68,0.10);
  border-radius: 4px;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 0 12px rgba(239,68,68,0.4);
}
.damage-box.severe { border-color: #EF4444; }
.damage-box.moderado { border-color: #F59E0B; background: rgba(245,158,11,0.10); }
.damage-box.leve { border-color: #FBBF24; background: rgba(251,191,36,0.10); }
.damage-tag {
  position: absolute;
  top: -22px;
  left: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 3px;
  background: #EF4444;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #3A3A3A; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

@media print {
  body { background: white !important; color: black !important; }
  .no-print { display: none !important; }
}

/* A5 printable card */
.a5-card {
  width: 148mm;
  height: 210mm;
  margin: 0 auto;
  padding: 12mm;
  background: #0d0d0d;
  color: white;
  border-radius: 4mm;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
@page { size: A5; margin: 0; }
@media print {
  .a5-card { box-shadow: none; border-radius: 0; margin: 0; }
}
