/**
 * grep> Modern Botanical Hardware Craft Theme
 * Unifies the application palette, tactile 3D controls, and organic card surfaces
 * with the 48-Hour Collar Scan Pinpoint Map (/loc/:token) and Emergency Pet Page (/b/:bandId).
 * Note: Intentionally not loaded on /poster.html (Lost Pet Flyer).
 */

:root {
  --grep-bg-cream: #faf7ed;
  --grep-forest-ink: #173824;
  --grep-forest-deep: #1e3d29;
  --grep-sage-muted: #5a7362;
  --grep-sage-border: #e1eed8;
  --grep-sage-pill-bg: #ebf6e3;
  --grep-sage-pill-border: #cde5be;
  --grep-emerald-mid: #247d43;
  --grep-amber: #f59e0b;
}

body {
  background-color: #faf7ed !important;
  background-image:
    radial-gradient(circle at 14% 8%, rgba(212, 235, 200, 0.55) 0%, transparent 46%),
    radial-gradient(circle at 88% 16%, rgba(245, 158, 11, 0.08) 0%, transparent 42%),
    radial-gradient(circle at 50% 94%, rgba(209, 234, 197, 0.4) 0%, transparent 52%) !important;
  font-family: 'Nunito', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  color: #173824 !important;
}

.font-doggo,
.font-brand,
h1, h2, h3 {
  font-family: 'Nunito', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  letter-spacing: -0.025em;
}

/* Sticky Top Navigation Bars */
header.sticky {
  background-color: rgba(250, 247, 237, 0.92) !important;
  border-bottom: 1.5px solid #dcebd4 !important;
  box-shadow: 0 4px 16px rgba(23, 56, 36, 0.04) !important;
}

/* Main Organic Cards */
.bg-white.rounded-3xl,
section.rounded-3xl.bg-white,
div.rounded-3xl.bg-white,
main.rounded-3xl.bg-white,
#statusCard {
  background: #ffffff !important;
  border: 2px solid #e1eed8 !important;
  border-radius: 30px !important;
  box-shadow: 0 16px 40px rgba(45, 74, 62, 0.07), 0 2px 6px rgba(0, 0, 0, 0.02) !important;
}

/* Subtle Botanical Info & Step Panels */
.bg-amber-50\/60,
.bg-amber-50\/50,
.bg-amber-50\/70,
.bg-stone-50\/80,
.from-amber-50 {
  background: #f4f8f1 !important;
  border-color: #d4ebc8 !important;
}

/* Hardware Tag ID Pills & Sub-badges */
#headerTagBadge,
#bandIdBadge,
#tagBadge,
#bandIdInput {
  background-color: #ebf5e6 !important;
  color: #173824 !important;
  border-color: #cde5be !important;
  font-weight: 800 !important;
}

/* Form Inputs, Selects & Textareas */
input[type="text"]:not([readonly]),
input[type="password"],
input[type="tel"],
input[type="email"],
input[type="number"],
textarea,
select {
  background-color: #fbfdf9 !important;
  border: 1.5px solid #cde5be !important;
  color: #173824 !important;
  border-radius: 16px !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease !important;
}

input[type="text"]:not([readonly]):focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  background-color: #ffffff !important;
  border-color: #247d43 !important;
  box-shadow: 0 0 0 3px rgba(36, 125, 67, 0.15) !important;
  outline: none !important;
}

/* Tactile 3D Forest Emerald Primary Buttons */
#btnLogin,
#btnPairDevice,
#btnSubmitActivation,
#btnSaveSettings,
#btnVerifyRenewalCode,
.btn-tactile-emerald {
  background: linear-gradient(180deg, #329246 0%, #1f7233 50%, #165b26 100%) !important;
  border: 1.5px solid #134e21 !important;
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.45),
    inset 0 -2px 4px rgba(0, 0, 0, 0.28),
    0 8px 20px rgba(22, 91, 38, 0.28) !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  font-weight: 900 !important;
  letter-spacing: -0.01em !important;
}

#btnLogin:active,
#btnPairDevice:active,
#btnSubmitActivation:active,
#btnSaveSettings:active,
#btnVerifyRenewalCode:active,
.btn-tactile-emerald:active {
  transform: scale(0.98) !important;
}

/* Headings & Text Refinement */
.text-stone-900,
.text-slate-900 {
  color: #173824 !important;
}

.text-stone-800,
.text-slate-800,
.text-stone-700 {
  color: #274b34 !important;
}

.text-stone-600,
.text-stone-500 {
  color: #5a7362 !important;
}

/* 20km Veterinary Emergency Network Alert Card Controls */
#btnOpenVetBroadcastModal {
  background: #f59e0b !important;
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%) !important;
  color: #1c1917 !important;
  border: 1.5px solid #b45309 !important;
  box-shadow: 0 2px 6px rgba(180, 83, 9, 0.25) !important;
  font-weight: 900 !important;
}

#btnOpenVetBroadcastModal:hover {
  filter: brightness(1.05) !important;
}

#btnOpenVetBroadcastModal:active {
  transform: scale(0.97) !important;
}

#btnOpenVetBroadcastModal span {
  color: #1c1917 !important;
  font-weight: 900 !important;
}

#vetBroadcastCard {
  background-color: #fffdf5 !important;
  border: 1.5px solid #fde047 !important;
}

#vetCountBadge {
  background-color: #fef3c7 !important;
  color: #78350f !important;
  border: 1.5px solid #f59e0b !important;
  font-weight: 800 !important;
}

#vetEmergencyBadge {
  background-color: #fee2e2 !important;
  color: #991b1b !important;
  border: 1.5px solid #ef4444 !important;
  font-weight: 800 !important;
}

