/* Simple styles */

:root {
  --bg: #f6f8fa;
  --card: #fff;
  --accent: #0b5cff;
  --muted: #666;
}

html,body {
  height: 100%;
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  color: #222;
}

.container {
  max-width: 900px;
  margin: 36px auto;
  padding: 20px;
  background: var(--card);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(19,24,34,0.06);
}

h1 {
  margin-top: 0;
}

label {
  display:block;
  margin-top: 12px;
  font-weight: 600;
}

input[type="text"], textarea {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 14px;
  box-sizing: border-box;
}

.form-actions {
  margin-top: 14px;
}

.btn {
  display: inline-block;
  padding: 8px 14px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-right: 8px;
}
.btn.secondary {
  background: #ddd;
  color: #333;
}
.btn.small {
  padding: 6px 8px;
  font-size: 13px;
}

.alert {
  padding: 10px;
  background: #eaf7ea;
  border: 1px solid #c9edd0;
  border-radius: 6px;
  margin-bottom: 10px;
}

.sends-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}
.sends-table th, .sends-table td {
  border: 1px solid #eee;
  padding: 8px;
  vertical-align: top;
  text-align: left;
}
.msgid {
  font-family: monospace;
  font-size: 13px;
  margin-bottom: 4px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,10,0.35);
  z-index: 999;
}
.modal.open {
  display: flex;
}
.modal-content {
  background: #fff;
  padding: 18px;
  border-radius: 8px;
  max-width: 700px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(2,6,23,0.2);
}
.modal-content h2 {
  margin-top: 0;
}
.modal-actions {
  margin-top: 12px;
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #f4f6f8;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #e6e9ec;
}