body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f8fb;
  color: #111827;
}

* {
  box-sizing: border-box;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #0f172a;
  color: #ffffff;
}

.topbar a {
  color: inherit;
  text-decoration: none;
}

nav a {
  margin-left: 1rem;
  font-weight: 600;
}

.container {
  max-width: 980px;
  margin: 1.5rem auto;
  padding: 0 1.5rem;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  margin-bottom: 1.5rem;
}

.auth-card {
  max-width: 400px;
  margin: 3rem auto;
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  color: #0f172a;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: #334155;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  background: #f8fafc;
}

textarea {
  resize: vertical;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.2rem;
  border: none;
  border-radius: 0.85rem;
  background: #2563eb;
  color: white;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: #1d4ed8;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.table th,
.table td {
  text-align: left;
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.table th {
  color: #0f172a;
  font-weight: 700;
}

.unread {
  font-weight: 700;
}

.message-card {
  line-height: 1.7;
}

.signature {
  margin-top: 1.5rem;
  color: #475569;
  font-size: 0.95rem;
}

.alerts {
  margin-bottom: 1rem;
}

.alert {
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  margin-bottom: 0.75rem;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
}

.alert-danger {
  background: #fee2e2;
  color: #991b1b;
}

.alert-warning {
  background: #fef3c7;
  color: #92400e;
}

.alert-info {
  background: #dbeafe;
  color: #1e3a8a;
}

.footer {
  text-align: center;
  padding: 1rem 0;
  color: #64748b;
}

.small-form {
  margin-top: 1.5rem;
}
