/* ===== Reset ===== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f2f2f2;
}

/* ===== Canvas ===== */

#trajectoryCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  background: #ffffff;
}

/* ===== Overlays ===== */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.85);

  display: flex;
  align-items: center;
  justify-content: center;
}

.hidden {
  display: none !important;
}

/* ===== Cards ===== */

.card {
  background: #ffffff;
  padding: 24px 32px;
  border-radius: 12px;
  min-width: 260px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.card-wide {
  min-width: 340px;
  max-width: 560px;
  width: min(90vw, 560px);
  text-align: left;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

.actions {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card input {
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
}

.card input:focus {
  border-color: #0066cc;
}

.card button {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: #0066cc;
  color: white;
}

.card button:hover {
  background: #0052a3;
}

.card button.secondary {
  background: #e0e0e0;
  color: #333333;
  margin-top: 8px;
}

.card button.secondary:hover {
  background: #cfcfcf;
}

.muted {
  color: #777777;
  font-size: 14px;
}

.error {
  color: #c0392b;
  font-size: 14px;
}

.user-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
  font-size: 14px;
}

.user-table th,
.user-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #e6e6e6;
}

.user-table tbody tr {
  cursor: pointer;
  transition: background 0.15s ease-in-out;
}

.user-table tbody tr:hover {
  background: #f3f7ff;
}
