/* ════════════════════════════════════════
   TERRASOURCE — Global Styles
   Fonts: Georgia (headings), Calibri (body)
   Both are system fonts — no Google Fonts import needed.
════════════════════════════════════════ */

/* ════════════════════════════════════════
   TOKENS
════════════════════════════════════════ */
:root {
  --forest:   #1A3C2E;
  --moss:     #2D6A4F;
  --sage:     #52B788;
  --slate:    #1C2B35;
  --charcoal: #2C3E50;
  --offwhite: #F8F5EF;
  --cream:    #EDE8DC;
  --amber:    #E8A020;
  --amber2:   #F5C842;
  --white:    #FFFFFF;
  --dark-txt: #1A2A24;
  --muted:    #8FA3A0;
  --red:      #C0392B;
}

/* ════════════════════════════════════════
   RESET
════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background:  var(--offwhite);
  color:       var(--dark-txt);
  font-family: Calibri, Arial, sans-serif;
  font-size:   15px;
  line-height: 1.5;
  min-height:  100vh;
}
a { color: var(--amber); text-decoration: none; }
input, select, textarea, button { font-family: Calibri, Arial, sans-serif; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--cream); }

/* ════════════════════════════════════════
   SPINNER
════════════════════════════════════════ */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--cream);
  border-top-color: var(--moss);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
.spinner.lg { width: 40px; height: 40px; border-width: 3px; }
.spinner-center {
  display: flex; justify-content: center; align-items: center;
  min-height: 100vh;
}

/* ════════════════════════════════════════
   TOAST
════════════════════════════════════════ */
.toast-container {
  position: fixed; bottom: 20px; right: 20px; z-index: 300;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--white); border: 1px solid var(--cream);
  border-left: 4px solid var(--moss);
  padding: 10px 16px; font-size: 13px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
  display: flex; align-items: center; gap: 8px;
  animation: fadeUp .2s ease;
  font-family: Calibri, Arial, sans-serif;
  color: var(--dark-txt);
}
.toast.success { border-left-color: var(--moss); }
.toast.error   { border-left-color: var(--red); }
.toast.info    { border-left-color: var(--amber); }

/* ════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════ */
@keyframes spin    { to { transform: rotate(360deg) } }
@keyframes fadeUp  { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }
