/* ── ANNOTATION CHIPS ── */
.annot {
  display: inline-block;
  background: #fff8e1;
  border: 1.5px dashed #f4a261;
  color: #7b5b1a;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  margin-left: 6px;
  vertical-align: middle;
  cursor: help;
  position: relative;
}

/* ── NAV ── */
.nav {
  background: var(--soil);
  padding: 0 28px;
  display: flex;
  align-items: center;
  height: 58px;
  gap: 32px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.nav-logo-text {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  color: var(--leaf-soft);
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: 16px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-link {
  color: var(--pale);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
  background: none;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(116, 198, 157, 0.15);
  color: var(--leaf-soft);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.nav-user {
  color: var(--pale);
  font-size: 13px;
}

.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--leaf);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: var(--rad);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--leaf);
  color: white;
}

.btn-primary:hover {
  background: var(--leaf-mid);
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(45, 106, 79, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--leaf);
  border: 1.5px solid var(--leaf);
}

.btn-secondary:hover {
  background: var(--mist);
}

.btn-ghost {
  background: transparent;
  color: var(--mid);
}

.btn-ghost:hover {
  background: var(--mist);
}

.btn-danger {
  background: #ffebee;
  color: var(--warn);
  border: 1px solid #ffcdd2;
}

.btn-danger:hover {
  background: #ffcdd2;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn-lg {
  padding: 13px 28px;
  font-size: 15px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

/* ── CARDS ── */
.card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-pad {
  padding: 24px;
}

.card-header {
  background: linear-gradient(135deg, var(--leaf) 0%, var(--leaf-mid) 100%);
  padding: 20px 24px;
}

.card-header h3 {
  color: white;
  font-size: 17px;
  font-weight: 700;
}

.card-header p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  margin-top: 3px;
}

/* ── FORM ── */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #d0ddd4;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: white;
  transition: border-color 0.15s;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--leaf-mid);
  box-shadow: 0 0 0 3px rgba(64, 145, 108, 0.12);
}

.form-textarea {
  min-height: 90px;
  resize: vertical;
}

.form-error {
  font-size: 12px;
  color: var(--warn);
  margin-top: 4px;
  display: none;
}

.form-error.show {
  display: block;
}

/* ── BADGE ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-green {
  background: var(--mist);
  color: var(--leaf);
}

.badge-earth {
  background: #fbe9e7;
  color: #bf360c;
}

.badge-blue {
  background: #e3f2fd;
  color: #1565c0;
}

.badge-yellow {
  background: #fff9c4;
  color: #f57f17;
}

.badge-grey {
  background: #eceff1;
  color: #546e7a;
}

.badge-purple {
  background: #f3e5f5;
  color: #6a1b9a;
}

/* ── TABLE ── */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background: var(--mist);
  color: var(--leaf);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 11px 16px;
  text-align: left;
  border-bottom: 2px solid var(--leaf-soft);
}

td {
  padding: 12px 16px;
  font-size: 13.5px;
  border-bottom: 1px solid #edf2ef;
  vertical-align: middle;
}

tr:hover td {
  background: var(--fog);
}

tr:last-child td {
  border-bottom: none;
}

/* ── SEARCH ── */
.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid #d0ddd4;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  min-width: 200px;
}

.search-input:focus {
  border-color: var(--leaf-mid);
  box-shadow: 0 0 0 3px rgba(64, 145, 108, 0.12);
}

/* ── GARDEN CARD ── */
.garden-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.garden-card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
}

.garden-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.garden-card-img {
  height: 120px;
  background: linear-gradient(135deg, var(--leaf) 0%, var(--leaf-soft) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  position: relative;
}

.garden-card-body {
  padding: 18px;
}

.garden-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.garden-card-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 10px 0;
}

.garden-card-meta-item {
  font-size: 13px;
  color: var(--mid);
  display: flex;
  align-items: center;
  gap: 7px;
}

.garden-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #edf2ef;
}

/* ── SIGN-UP GARDEN CARDS ── */
.signup-card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 0;
  overflow: hidden;
  margin-bottom: 14px;
  transition: all 0.15s;
}

.signup-card:hover {
  box-shadow: var(--shadow-lg);
}

.signup-card-color {
  width: 8px;
  flex-shrink: 0;
  background: var(--leaf-mid);
}

.signup-card-body {
  padding: 18px 20px;
  flex: 1;
}

.signup-card-actions {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.spots-bar {
  height: 5px;
  background: #e0ebe4;
  border-radius: 3px;
  margin: 8px 0;
  overflow: hidden;
}

.spots-bar-fill {
  height: 100%;
  background: var(--leaf-mid);
  border-radius: 3px;
}

/* ── ACTIVITY FEED ── */
.activity-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #edf2ef;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--mist);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.activity-text {
  font-size: 13.5px;
  color: var(--ink);
}

.activity-time {
  font-size: 11.5px;
  color: var(--pale);
  margin-top: 3px;
}

/* ── HARVEST ROW ── */
.harvest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #edf2ef;
}

.harvest-row:last-child {
  border-bottom: none;
}

.harvest-crop {
  font-size: 15px;
  font-weight: 600;
}

.harvest-plot {
  font-size: 12px;
  color: var(--mid);
}

.harvest-qty {
  font-size: 18px;
  font-weight: 700;
  color: var(--leaf);
  font-family: 'Fraunces', serif;
}

/* ── VOLUNTEER ROW ── */
.volunteer-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #edf2ef;
}

.volunteer-row:last-child {
  border-bottom: none;
}

.volunteer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--leaf-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.volunteer-info {
  flex: 1;
}

.volunteer-name {
  font-size: 14px;
  font-weight: 600;
}

.volunteer-meta {
  font-size: 12px;
  color: var(--mid);
  margin-top: 2px;
}

/* ── TABS ── */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid #e0ebe4;
  margin-bottom: 20px;
}

.tab {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mid);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
}

.tab.active {
  color: var(--leaf);
  border-bottom-color: var(--leaf);
}

/* ── FILTER TAGS ── */
.filter-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filter-tag {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid #d0ddd4;
  background: white;
  color: var(--mid);
  transition: all 0.15s;
}

.filter-tag.active {
  background: var(--mist);
  border-color: var(--leaf);
  color: var(--leaf);
}

/* ── PROGRESS RING ── */
.progress-ring {
  width: 60px;
  height: 60px;
}

.progress-ring-bg {
  fill: none;
  stroke: #e0ebe4;
  stroke-width: 4;
}

.progress-ring-fill {
  fill: none;
  stroke: var(--leaf);
  stroke-width: 4;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.5s ease;
}

/* ── FORM GRID ── */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
