/* Small additions on top of the Tailwind CDN build used on every page. */

body {
  background: #f9fafb;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.card {
  background: white;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

:root {
  --brand-color: #2563eb;
}

.btn-primary {
  background: var(--brand-color);
  color: white;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  transition: opacity 0.15s;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}
.btn-primary:hover { opacity: 0.92; }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; }

.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 0.5rem;
}
.spinner-dark {
  border-color: rgba(0,0,0,0.15);
  border-top-color: var(--brand-color);
}
@keyframes spin { to { transform: rotate(360deg); } }

.spinner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
}
.spinner-overlay .spinner {
  width: 2.5rem;
  height: 2.5rem;
  border-width: 3px;
  margin-right: 0;
}

.status-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  display: inline-block;
}

.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: white;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-around;
  padding: 0.4rem 0 calc(0.4rem + env(safe-area-inset-bottom));
  z-index: 30;
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.7rem;
  color: #6b7280;
  padding: 0.4rem 0.6rem;
}
.bottom-nav a.active { color: var(--brand-color); font-weight: 600; }
