* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0f172a;
  color: #e5e7eb;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: #020617;
  border-radius: 16px;
  padding: 24px 20px 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.subtitle {
  color: #9ca3af;
  margin-bottom: 20px;
}

.form-section,
.notes-section {
  margin-top: 20px;
}

h2 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #1f2937;
  background: #020617;
  color: #e5e7eb;
  resize: vertical;
}

input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: #3b82f6;
}

textarea {
  min-height: 80px;
}

/* ---------- Buttons ---------- */

.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

button {
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: #3b82f6;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.08s ease;
}

button:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.4);
}

button:active {
  transform: translateY(0);
  box-shadow: none;
}

.admin-button {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #1f2937;
  background: transparent;
  color: #9ca3af;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.08s ease, color 0.08s ease;
}

.admin-button:hover {
  background: #020617;
  color: #e5e7eb;
}

/* ---------- Messages ---------- */

.message {
  min-height: 18px;
  font-size: 0.9rem;
}

.message.error {
  color: #f87171;
}

.message.success {
  color: #34d399;
}

/* ---------- Notes ---------- */

.notes-section ul {
  list-style: none;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.note {
  background: #020617;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid #1f2937;
}

.note-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.8rem;
  color: #9ca3af;
}

.note-author {
  font-weight: 600;
}

.note-date {
  font-style: italic;
}

.note-content {
  font-size: 0.95rem;
  color: #e5e7eb;
  white-space: pre-wrap;
}

.empty {
  color: #6b7280;
  font-style: italic;
}

/* ---------- Mobile ---------- */

@media (max-width: 600px) {
  .container {
    padding: 16px 12px 20px;
  }

  h1 {
    font-size: 1.6rem;
  }
}
