/*
Purpose: Basic styling for the email generator UI.
Role: Keeps layout readable and clean with minimal CSS.
*/
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f6f7fb;
  color: #1b1f24;
}

.app {
  max-width: 760px;
  margin: 32px auto;
  padding: 0 16px;
}

header {
  margin-bottom: 16px;
}

h1 {
  margin: 0 0 8px 0;
  font-size: 28px;
}

.subtitle {
  margin: 0;
  color: #556070;
}

.card {
  background: #ffffff;
  border: 1px solid #e3e7ee;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.field {
  flex: 1;
}

label {
  display: block;
  font-size: 12px;
  color: #667085;
  margin-bottom: 4px;
}

.value {
  padding: 10px;
  background: #f1f4f8;
  border-radius: 6px;
  font-family: "Courier New", monospace;
  word-break: break-all;
}

.button {
  padding: 10px 14px;
  border: 1px solid #cfd6e4;
  background: #ffffff;
  border-radius: 6px;
  cursor: pointer;
}

.button.primary {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.status {
  font-size: 12px;
  color: #667085;
}

.history {
  display: grid;
  gap: 8px;
}

.history-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e6ebf2;
  border-radius: 6px;
  background: #fbfcfe;
}

.history-meta {
  grid-column: 1 / -1;
  font-size: 12px;
  color: #667085;
}

.history-label {
  font-size: 12px;
  color: #667085;
}
