:root {
  --brand: #0d6efd;
}
html {
  overflow-y: scroll; /* always reserve scrollbar space, so pages with/without a scrollbar don't shift navbar content sideways */
}
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f6f9;
}
.navbar-brand { font-weight: 600; color: var(--brand) !important; }
.navbar-logo {
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.btn-primary { background-color: var(--brand); border-color: var(--brand); }
.btn-primary:hover { background-color: #0b5ed7; border-color: #0a58ca; }
.status-badge-clean { background-color: #198754; }
.status-badge-infected { background-color: #dc3545; }
.status-badge-pending { background-color: #ffc107; color: #212529; }
.upload-drop {
  border: 2px dashed #c8ccd4;
  border-radius: 10px;
  padding: 40px;
  text-align: center;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s;
}
.upload-drop:hover, .upload-drop.dragover { border-color: var(--brand); }

.file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8f9fb;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.file-item .file-icon { font-size: 1.3rem; color: var(--brand); flex-shrink: 0; }
.file-item .file-name { font-size: 0.95rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item .file-size { font-size: 0.8rem; color: #6c757d; flex-shrink: 0; }
.file-item .file-remove { flex-shrink: 0; color: #dc3545; cursor: pointer; background: none; border: none; font-size: 1.1rem; line-height: 1; }
.file-item .file-remove:hover { color: #a02834; }

.upload-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #495057;
  margin-top: 8px;
  margin-bottom: 2px;
}

.stat-card {
  border-left: 4px solid var(--stat-color, var(--brand));
  display: flex;
  align-items: center;
  gap: 14px;
}
.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: color-mix(in srgb, var(--stat-color, var(--brand)) 15%, white);
  color: var(--stat-color, var(--brand));
  flex-shrink: 0;
}
.stat-card .stat-value { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.stat-card .stat-label { color: #6c757d; font-size: 0.82rem; }
.recipient-tag {
  display: inline-flex;
  align-items: center;
  background: #e7f1ff;
  color: var(--brand);
  border-radius: 20px;
  padding: 4px 12px;
  margin: 3px;
  font-size: 0.9em;
}
.recipient-tag button { background: none; border: none; color: var(--brand); margin-left: 6px; cursor: pointer; }
.otp-input {
  letter-spacing: 8px;
  font-size: 1.5rem;
  text-align: center;
}
