/* === Global dark mode theme === */
:root {
  --bg: #0f172a;
  --card: #1e293b;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --border: #334155;
}

/* Layout */
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
}

main {
  max-width: 600px;
  margin: 3rem auto;
  background: var(--card);
  padding: 2rem 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border);
}

/* Headings */
h1 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

/* Flash messages */
.flash {
  background-color: rgba(59, 130, 246, 0.2);
  color: var(--accent);
  padding: 0.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--accent);
}

/* Form fields */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  font-weight: 600;
  color: var(--text);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background-color: #0f172a;
  color: var(--text);
  font-size: 1rem;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

textarea {
  resize: vertical;
}

/* Buttons */
button {
  background-color: var(--accent);
  color: white;
  border: none;
  padding: 0.8rem 1rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: var(--accent-hover);
}

/* Slot buttons */
#slots button {
  margin: 0.3rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 0.5rem;
  background-color: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#slots button:hover {
  background-color: rgba(59, 130, 246, 0.2);
}

#slots button.selected {
  background-color: var(--accent);
  color: white;
}

/* Disclaimer */
.disclaimer {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  line-height: 1.4;
}

/* Date picker styling */
input[type="date"] {
  background-color: #0f172a;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem;
  border-radius: 0.5rem;
}

/* Center align date picker and slots */
#slots {
  text-align: center;
  margin-top: 1rem;
}
