:root {
    --yellow: #facc15;
    --bg: #fffaf4;
    --primary: #0f766e;
    --card-bg: #fff;
    --text: #111;
    --muted: #666;
    --border: #f1e4cf;
}

body {
    background: var(--bg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.6;
}

.card {
    border: none !important;
    border-radius: 24px !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06) !important;
    background: var(--card-bg) !important;
}

.navbar {
    background: var(--card-bg) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
}

.navbar-brand { font-weight: 700 !important; color: var(--text) !important; }
.nav-link { color: var(--text) !important; }

.btn-cta, .btn-warning {
    background: var(--yellow) !important;
    color: #000 !important;
    border: none !important;
    border-radius: 18px !important;
    font-weight: 600 !important;
    padding: 0.6rem 1.5rem !important;
}

.btn-cta:hover { background: #eab308 !important; }

.drop-zone {
    border: 2px dashed #d1d5db !important;
    border-radius: 16px !important;
    padding: 3rem !important;
    text-align: center !important;
    cursor: pointer !important;
}

.drop-zone:hover {
    border-color: var(--yellow) !important;
    background: #fffbeb !important;
}

.stat-card { text-align: center; padding: 1.2rem; }
.stat-number { font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 0.8rem; color: var(--muted); }

.table { background: var(--card-bg); border-radius: 12px; overflow: hidden; }
.badge-active { background: #22c55e; color: #fff; }
.badge-revoked { background: #ef4444; color: #fff; }

footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 2rem;
}
/* Shared processing and download status */
.process-overlay-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(17, 24, 39, .58);
  backdrop-filter: blur(3px);
}
.process-status-card {
  width: min(440px, 100%);
  padding: 2rem;
  border: 1px solid var(--line, #f1e4cf);
  border-radius: 24px;
  background: var(--surface, #fff);
  color: var(--text, #111);
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
}
.process-spinner,
.button-spinner {
  display: inline-block;
  border-radius: 50%;
  animation: pdfpro-spin .85s linear infinite;
}
.process-spinner {
  width: 58px;
  height: 58px;
  margin-bottom: 1rem;
  border: 6px solid var(--line, #f1e4cf);
  border-top-color: var(--primary, #0f766e);
}
.button-spinner {
  width: 1em;
  height: 1em;
  margin-right: .4rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  vertical-align: -.15em;
}
.process-title { margin: 0 0 .5rem; font-size: 1.35rem; }
.process-message { min-height: 1.5em; margin-bottom: 1rem; color: var(--muted, #57534e); }
.process-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line, #f1e4cf);
}
.process-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary, #0f766e), var(--mint, #14b8a6));
  transition: width .45s ease;
}
.process-percent { margin: .65rem 0 0; font-size: .9rem; font-weight: 700; }
.process-note { margin: .35rem 0 0; color: var(--muted, #57534e); font-size: .82rem; }
.process-active { overflow: hidden; }
.download-started { pointer-events: none; opacity: .82; }
@keyframes pdfpro-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .process-spinner, .button-spinner { animation-duration: 1.8s; }
  .process-bar { transition: none; }
}
