/* Sisa2Farm, clean, simple design tokens */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --green: #56B778;
  --green-dark: #3D9A5C;
  --green-deep: #2E7A48;
  --green-soft: #EDF7F1;
  --blue: #3C96E0;
  --blue-dark: #2A7BC0;
  --blue-soft: #EDF5FC;

  --text: #1C2428;
  --text-muted: #5C6B73;
  --text-light: #8B98A0;
  --bg: #FAFBFA;
  --bg-alt: #F2F5F3;
  --surface: #FFFFFF;
  --border: #E2E8E4;
  --border-strong: #C8D4CC;

  --success: #2F9E5F;
  --warning: #E09B2D;
  --danger: #D64545;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.06);

  --font: 'Inter', system-ui, sans-serif;
  --nav-h: 60px;
  --container: 960px;
  --ease: ease;
  --control-h: 44px;
  --ring: 0 0 0 2px rgba(86, 183, 120, 0.35);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--green-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
h3 { font-size: 1.05rem; }
p { color: var(--text-muted); }

.container {
  width: min(100% - 1.5rem, var(--container));
  margin-inline: auto;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge-available { background: var(--green-soft); color: var(--green-deep); }
.badge-requested { background: #FFF4E5; color: #9A6B12; }
.badge-confirmed { background: var(--blue-soft); color: var(--blue-dark); }
.badge-collecting { background: #F3EEF8; color: #5E4A8A; }
.badge-delivery { background: var(--blue-soft); color: var(--blue-dark); }
.badge-completed { background: var(--green-soft); color: var(--green-deep); }
.badge-cancelled { background: #FEECEC; color: #B91C1C; }
.badge-pending { background: #FFF8E6; color: #B45309; }

.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.role-producer { background: #dff3e7; color: var(--green-deep); }
.role-farmer { background: #dceefb; color: var(--blue-dark); }
.role-admin { background: #F0EBF5; color: #5B4580; }
