/* ============================================================================
   RESTORATION DIRECT — Shared styles (public + admin)
   ============================================================================ */

:root {
  --ink: #1A1226;
  --paper: #F7F3EC;
  --paper-2: #EDE6D7;
  --purple: #633898;
  --purple-dark: #4A2A73;
  --yellow: #FDDA16;
  --rule: #2A1F3D;
  --muted: #6B6258;
  --green: #2E8B57;
  --red: #C0392B;
  --orange: #E67E22;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { font-family: 'Fraunces', Georgia, serif; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 14px 24px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: 'Archivo', sans-serif;
  text-align: center;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--purple); }
.btn-secondary { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.btn-purple { background: var(--purple); color: var(--paper); }
.btn-purple:hover { background: var(--ink); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--paper); }
.btn-danger { background: var(--red); color: var(--paper); }
.btn-sm { padding: 8px 14px; font-size: 12px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============ FORMS ============ */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 12px;
  font-family: 'Archivo', sans-serif;
  font-size: 15px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(99, 56, 152, 0.15);
}
.field textarea { resize: vertical; min-height: 100px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .field-row { grid-template-columns: 1fr; } }

/* ============ STATUS BADGES ============ */
.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 2px;
}
.badge-new { background: var(--yellow); color: var(--ink); }
.badge-quoted { background: var(--purple); color: var(--paper); }
.badge-paid { background: var(--green); color: white; }
.badge-dispatched { background: var(--purple-dark); color: var(--paper); }
.badge-completed { background: var(--ink); color: var(--paper); }
.badge-declined, .badge-refunded { background: var(--red); color: white; }
.badge-low { background: var(--orange); color: white; }

/* ============ UTILITY ============ */
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.hidden { display: none !important; }

/* ============ TOASTS ============ */
.toast {
  position: fixed; top: 20px; right: 20px;
  background: var(--ink); color: var(--paper);
  padding: 14px 20px; border-left: 4px solid var(--yellow);
  z-index: 9999;
  max-width: 360px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  animation: slideIn 0.25s ease-out;
}
.toast-success { border-left-color: var(--green); }
.toast-error { border-left-color: var(--red); }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
