/* ===========================================================
   Amity Email Signature Generator — UI styles
   NOTE: this file styles the generator app only.
   The signature itself is styled with INLINE styles in
   js/template.js so it survives email clients.
   =========================================================== */

:root {
  --brand: #0a66c2;
  --brand-dark: #084a8c;
  --ink: #1a1a1a;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f5f6f8;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-logo { height: 32px; width: auto; }
.site-header h1 { font-size: 18px; margin: 0; font-weight: 600; }

.layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  margin: 28px 0;
  padding: 0 24px;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.panel h2 { margin: 0 0 16px; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

/* Form */
form { display: grid; gap: 14px; }
.field-row { display: flex; gap: 14px; }
.field-row label { flex: 1; }
@media (max-width: 640px) {
  .field-row { flex-direction: column; }
}
label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: #374151; }
.optional { font-weight: 400; color: var(--muted); }
input {
  font: inherit;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}
input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10,102,194,.12); }

/* Preview */
.preview-box {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 20px;
  min-height: 120px;
  background: #fff;
  overflow-x: auto;
}

.actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
button {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  background: var(--brand);
  color: #fff;
}
button:hover { background: var(--brand-dark); }
button.secondary { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
button.secondary:hover { background: #f0f6fc; }

.status { min-height: 20px; font-size: 13px; color: #16a34a; margin: 10px 0 0; }

.howto { margin-top: 18px; font-size: 13px; color: var(--muted); }
.howto summary { cursor: pointer; font-weight: 600; color: #374151; }
.howto ol { margin: 10px 0 0; padding-left: 20px; }
