/* ==========================================================
   IUV Bangladesh — Main Stylesheet
   No Tailwind CDN needed. Pure hand-written CSS.
   ========================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer; }
.hover\:underline:hover { text-decoration: underline; }
.hover\:bg-gray-100:hover  { background-color: #f3f4f6; }
.hover\:bg-gray-50:hover   { background-color: #f9fafb; }
.hover\:bg-yellow-50:hover { background-color: #fefce8; }
.hover\:text-green-700:hover { color: #15803d; }

.font-sans { font-family: 'Inter', system-ui, -apple-system, sans-serif; }
.bg-surface { background-color: #ecf4e8; }
.bg-gray-50  { background-color: #f9fafb; }
.bg-gray-600 { background-color: #4b5563; }
.bg-gray-900 { background-color: #111827; }
.bg-white    { background-color: #ffffff; }
.bg-green-50 { background-color: #f0fdf4; }
.bg-red-50   { background-color: #fef2f2; }
.bg-black\/50{ background-color: rgba(0,0,0,.5); }

/* ── Typography ──────────────────────────────────────────── */
.text-xs  { font-size: 12px; } .text-sm  { font-size: 14px; }
.text-base{ font-size: 16px; } .text-lg  { font-size: 18px; }
.text-xl  { font-size: 20px; } .text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; } .text-4xl { font-size: 36px; }
.text-5xl { font-size: 48px; }
.font-medium  { font-weight: 500; }
.font-semibold{ font-weight: 600; }
.font-bold    { font-weight: 700; }
.italic       { font-style: italic; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.leading-tight   { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.leading-none    { line-height: 1; }
.tracking-wide   { letter-spacing: 0.025em; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uppercase { text-transform: uppercase; }

.text-gray-400 { color: #9ca3af; } .text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; } .text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; } .text-white    { color: #ffffff; }
.text-green-700{ color: #15803d; } .text-green-800{ color: #166534; }
.text-blue-600 { color: #2563eb; } .text-red-500  { color: hsl(0, 84%, 60%); }
.text-red-700  { color: #b91c1c; } .text-red-800  { color: #991b1b; }
.bg-amber-50   { background-color: rgb(255 251 235); color: #92410e; border: 1px solid rgb(253 230 138); border-radius: 10px; padding: 5px 10px; margin: 5px 0; font-weight: 600;}
.bg-amber-year { background-color: rgb(236 253 245); color: rgb(6 95 70); border: 1px solid rgb(253 230 138); border-radius: 10px; padding: 5px 10px; margin: 5px 0; font-weight: 600;}
.bg-amber-doi  { background-color: #14532d; color: #ffffff; border-radius: 10px; padding: 5px 10px; margin: 5px 0; font-weight: 600;}

/* ── Layout ──────────────────────────────────────────────── */
.flex { display: flex; } .inline-flex { display: inline-flex; } .block { display: block; }
.flex-col       { flex-direction: column; }
.flex-1         { flex: 1; }
.flex-wrap      { flex-wrap: wrap; }
.flex-shrink-0  { flex-shrink: 0; }
.items-center   { align-items: center; }
.justify-between{ justify-content: space-between; }
.justify-center { justify-content: center; }
.min-w-0   { min-width: 0; }
.min-h-screen { min-height: 100vh; }
.w-full    { width: 100%; }
.h-full    { height: 100%; }
.w-5       { width: 20px; }
.w-64      { width: 256px; }
.h-0\.5    { height: 2px; }
.h-16      { height: 64px; }
.max-w-2xl { max-width: 672px; }
.max-w-3xl { max-width: 768px; }
.max-w-4xl { max-width: 896px; }
.max-w-7xl { max-width: 1280px; }
.mx-auto   { margin-left: auto; margin-right: auto; }
.ml-auto   { margin-left: auto; }
.mt-auto   { margin-top: auto; }
.mt-1  { margin-top: 4px;  } .mt-2  { margin-top: 8px;  } .mt-3  { margin-top: 12px; }
.mt-4  { margin-top: 16px; } .mt-5  { margin-top: 20px; } .mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-0\.5 { margin-top: 2px; }
.mx-1  { margin: 4px 0;  } .mx-2  { margin: 8px 0;  } .mx-3  { margin: 12px 0; }
.mx-4  { margin: 16px 0; } .mx-5  { margin: 20px 0; } .mx-6  { margin: 24px 0; }
.mx-8  { margin: 32px 0; }
.my-1  { margin: 0 4px;  } .my-2  { margin: 0 8px;  } .my-3  { margin: 0 12px; }
.my-4  { margin: 0 16px; } .my-5  { margin: 0 20px; } .my-6  { margin: 0 24px; }
.my-8  { margin: 0 32px; }
.mb-1  { margin-bottom: 4px;  } .mb-2  { margin-bottom: 8px;  } .mb-3  { margin-bottom: 12px; }
.mb-4  { margin-bottom: 16px; } .mb-5  { margin-bottom: 20px; } .mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.mb-10 { margin-bottom: 40px; }
.mr-2  { margin-right: 8px; }
.p-2  { padding: 8px;  } .p-3  { padding: 12px; } .p-4  { padding: 16px; }
.p-5  { padding: 20px; } .p-6  { padding: 24px; } .p-8  { padding: 32px; }
.p-2\.5 { padding: 10px; }
.px-2 { padding-left: 8px;  padding-right: 8px;  }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.py-1 { padding-top: 4px;  padding-bottom: 4px;  }
.py-2 { padding-top: 8px;  padding-bottom: 8px;  }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.py-10{ padding-top: 40px; padding-bottom: 40px; }
.py-16{ padding-top: 64px; padding-bottom: 64px; }
.py-12{ padding-top: 48px; padding-bottom: 48px; }
.py-20{ padding-top: 60px; padding-bottom: 60px; }
.py-24{ padding-top: 96px; padding-bottom: 96px; }
.pb-2 { padding-bottom: 8px; }
.pt-2 { padding-top: 8px; }

.space-y-1 > * + * { margin-top: 4px;  }
.space-y-2 > * + * { margin-top: 8px;  }
.space-y-3 > * + * { margin-top: 12px; }
.space-y-4 > * + * { margin-top: 16px; }
.space-y-5 > * + * { margin-top: 20px; }
.space-y-6 > * + * { margin-top: 24px; }
.space-y-8 > * + * { margin-top: 32px; }
.space-y-0\.5 > * + * { margin-top: 2px; }
.space-x-2 > * + * { margin-left: 8px; }

.gap-2 { gap: 8px;  } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.gap-5 { gap: 20px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0,1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.col-span-2  { grid-column: span 2; }

/* ── Position ────────────────────────────────────────────── */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed    { position: fixed;    }
.sticky   { position: sticky;   }
.top-0    { top: 0;    }
.z-20     { z-index: 20; }
.z-30     { z-index: 30; }
.z-40     { z-index: 40; }
.z-50     { z-index: 50; }
.z-999    { z-index: 999; }
.inset-0  { inset: 0; }

/* ── Borders ─────────────────────────────────────────────── */
.border     { border: 1px solid; }
.border-b   { border-bottom: 1px solid; }
.border-t   { border-top: 1px solid; }
.border-l-4 { border-left: 4px solid; }
.border-y   { border-top: 1px solid; border-bottom: 1px solid; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-800 { border-color: #1f2937; }
.border-green-200{ border-color: #bbf7d0; }
.border-green-500{ border-color: #22c55e; }
.border-red-200  { border-color: #fecaca; }

.rounded    { border-radius: 4px;   }
.rounded-lg { border-radius: 8px;   }
.rounded-xl { border-radius: 12px;  }
.rounded-2xl{ border-radius: 16px;  }
.rounded-full{ border-radius: 9999px; }
.rounded-t-xl { border-top-left-radius: 12px; border-top-right-radius: 12px; }

/* ── Shadows ─────────────────────────────────────────────── */
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06); }

/* ── Overflow & sizing ───────────────────────────────────── */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.object-cover    { object-fit: cover; }
.object-contain  { object-fit: contain; }
.aspect-square   { aspect-ratio: 1/1; }

/* ── Transitions ─────────────────────────────────────────── */
.transition-colors  { transition: color .2s, background-color .2s, border-color .2s; }
.transition-all     { transition: all .3s; }

/* ── Helpers ─────────────────────────────────────────────── */
.cursor-pointer   { cursor: pointer; }
.select-none      { user-select: none; }
.hidden           { display: none !important; }
.divide-y > * + * { border-top: 1px solid #f3f4f6; }

/* ── Nav ─────────────────────────────────────────────────── */
.nav-link   { font-size: 14px; font-weight: 500; color: #4b5563; text-decoration: none; transition: color .2s; }
.nav-link:hover, .nav-active { color: #15803d; }

/* ── Card ────────────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

/* ── Vegetable card grid ─────────────────────────────────── */
.veg-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0,1fr));
  gap: 20px;
}
.veg-grid-sm {
  display: grid;
  grid-template-columns: repeat(1, minmax(0,1fr));
  gap: 16px;
}
@media(min-width:640px)  { .veg-grid,.veg-grid-sm { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media(min-width:1024px) { .veg-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } .veg-grid-sm { grid-template-columns: repeat(4, minmax(0,1fr)); } }

.veg-card {
  display: block;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  text-decoration: none;
  overflow: hidden;
  transition: box-shadow .3s, transform .3s;
}
.veg-card:hover { box-shadow: 0 6px 16px rgba(0,0,0,.1); transform: translateY(-2px); }
.veg-card-img-wrap { position: relative; }
.veg-card-img { width: 100%; height: 192px; object-fit: cover; display: block; transition: transform .5s; }
.veg-card:hover .veg-card-img { transform: scale(1.05); }
.veg-card-placeholder {
  width: 100%; height: 192px;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  display: flex; align-items: center; justify-content: center;
  font-size: 52px;
}
.veg-card-badge {
  position: absolute; font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 20px;
}
.badge-pending { top: 8px; right: 8px; background: #fef9c3; color: #854d0e; }
.badge-embargo {
  top: 8px; left: 8px; background: rgba(17,24,39,.85); color: #fff;
  text-transform: uppercase; letter-spacing: .03em; display: inline-flex; align-items: center; gap: 4px;
}
.alter-color   { background-color: #22c55e; }
.badge-count   { bottom: 8px; right: 8px; background: rgba(0,0,0,.55); color: #fff; }
.veg-card-body { padding: 16px; }
.veg-card-title{ font-size: 14px; font-weight: 600; color: #111; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s; }
.veg-card:hover .veg-card-title { color: #15803d; }
.veg-card-sub  { font-size: 13px; color: #6b7280; margin-top: 2px; }
.veg-card-sci  { font-size: 12px; color: #9ca3af; font-style: italic; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.veg-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.veg-card-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.veg-card-arrow { color: #9ca3af; font-size: 16px; transition: color .2s, transform .2s; }
.veg-card:hover .veg-card-arrow { color: #15803d; transform: translateX(4px); }

/* ── Tags & badges ───────────────────────────────────────── */
.param-tag {  }
.tag-green  { color: #dcfce7; color: #166534; }
.tag-blue   { color: #dbeafe; color: #1e40af; }
.tag-orange { color: #ffedd5; color: #9a3412; }

/* ── Parameter cards (detail page) ──────────────────────── */
.param-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.param-card-header { background: #14532d; padding: 16px 20px; }
.param-card-title { font-size: 16px; font-weight: 600; color: #fff; }
.param-card-sub   { font-size: .875rem; color: rgba(255,255,255,.75); padding: 5px 0; }
.param-card-body  { padding: 4px 20px 8px; }
.param-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .5rem 0; border-bottom: 1px solid #e8f2ec; font-size: 13px;
}
.param-row:last-child { border-bottom: none; }
.param-label { color: #6b7280; font-size: .875rem; line-height: 1.25rem; }
.param-value { font-weight: 500; color: #111; }
.param-unit  { color: #9ca3af; font-size: .75rem; line-height: 1rem; font-weight: 400; margin-left: 3px; }

/* ── Gallery ─────────────────────────────────────────────── */
.gallery-main-wrap { overflow: hidden; border-radius: 12px; }
.gallery-main-img  { display: block; transition: transform .5s; }
.gallery-main-wrap:hover .gallery-main-img { transform: scale(1.03); }
.gallery-hover-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0); transition: background .2s;
  display: flex; align-items: center; justify-content: center;
}
.gallery-main-wrap:hover .gallery-hover-overlay { background: rgba(0,0,0,.2); }
.gallery-expand-icon {
  background: rgba(255,255,255,.9); border-radius: 50%; padding: 12px;
  font-size: 20px; opacity: 0; transition: opacity .2s; cursor: pointer;
}
.gallery-main-wrap:hover .gallery-expand-icon { opacity: 1; }
.gallery-feature-badge {
  position: absolute; top: 12px; left: 12px;
  background: #f59e0b; color: #fff; font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 20px;
}
.gallery-count-badge {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,.6); color: #fff; font-size: 11px;
  padding: 3px 8px; border-radius: 20px;
}
.gallery-caption-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  color: #fff; font-size: 13px; padding: 20px 14px 10px;
}
.thumb-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.thumb-item { aspect-ratio: 1; overflow: hidden; border-radius: 8px; cursor: pointer; }
.thumb-item img { transition: transform .3s; }
.thumb-item:hover img { transform: scale(1.1); }
.thumb-more-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-size: 16px; border-radius: 8px;
}
.lb-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1); border: none; color: #fff; cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%; font-size: 24px; line-height: 1;
  transition: background .2s; z-index: 1;
}
.lb-nav-btn:hover { background: rgba(255,255,255,.25); }

/* ── Forms ───────────────────────────────────────────────── */
.form-input {
  border: 1px solid #d1d5db; border-radius: 8px; padding: 8px 12px;
  font-size: 13px; font-family: inherit; background: #fff; color: #111;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus { outline: none; border-color: #15803d; box-shadow: 0 0 0 2px rgba(21,128,61,.12); }

.filter-select {
  border: 1px solid #d1d5db; border-radius: 8px; padding: 8px 32px 8px 12px;
  font-size: 13px; background: #fff; color: #111; cursor: pointer;
  height: 38px; line-height: 1.2;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.filter-select:focus { outline: none; border-color: #15803d; }

/* ── Buttons ─────────────────────────────────────────────── */
.admin-btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: #15803d; color: #fff; font-weight: 500; font-size: 13px;
  padding: 8px 16px; border-radius: 8px; border: none; cursor: pointer;
  text-decoration: none; transition: background .2s; white-space: nowrap;
}
.admin-btn-primary:hover { background: #166534; }
.admin-btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: #374151; font-weight: 500; font-size: 13px;
  padding: 8px 16px; border-radius: 8px; border: 1px solid #d1d5db;
  cursor: pointer; text-decoration: none; transition: background .2s;
}
.admin-btn-secondary:hover { background: #f9fafb; }
.icon-btn {
  background: none; border: none; cursor: pointer; padding: 6px 8px;
  border-radius: 6px; font-size: 14px; transition: background .2s;
}
.icon-btn:hover { background: #f3f4f6; }

/* ── Admin table ─────────────────────────────────────────── */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table thead { background: #f9fafb; border-bottom: 1px solid #e5e7eb; }
.admin-table th {
  text-align: left; padding: 12px 16px; font-size: 11px;
  font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: 0.05em;
}
.admin-table td { padding: 12px 16px; vertical-align: middle; border-bottom: 1px solid #f9fafb; }
.admin-table tbody tr:hover { background: #f9fafb; }

/* ── Pagination ──────────────────────────────────────────── */
.pg-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px; font-size: 13px;
  text-decoration: none; color: #374151; border: 1px solid #e5e7eb;
  background: #fff; transition: background .2s;
}
.pg-btn:hover      { background: #f9fafb; }
.pg-active         { background: #15803d !important; color: #fff !important; border-color: #15803d; }
.pg-disabled       { opacity: .4; cursor: not-allowed; }

/* ── Data embargo modal ──────────────────────────────────── */
.embargo-modal-overlay {
  position: fixed; inset: 0; z-index: 1000; background: rgba(17,24,39,.6);
  align-items: center; justify-content: center; padding: 16px;
}
.embargo-modal {
  background: #fff; border-radius: 16px; padding: 32px; max-width: 420px; width: 100%;
  text-align: center; box-shadow: 0 20px 40px rgba(0,0,0,.2);
}
.embargo-modal-icon {
  width: 64px; height: 64px; border-radius: 50%; background: #fde68a;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
  margin: 0 auto 16px;
}
.embargo-modal-title { font-size: 20px; font-weight: 700; color: #166534; margin-bottom: 12px; }
.embargo-modal-body  { font-size: 14px; color: #4b5563; line-height: 1.6; margin-bottom: 24px; }

/* ── Media library ───────────────────────────────────────── */
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}
@media(min-width:640px)  { .media-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media(min-width:1024px) { .media-grid { grid-template-columns: repeat(5, minmax(0,1fr)); } }
.media-item {
  position: relative;
  border: 1px solid #f3f4f6; border-radius: 12px; overflow: hidden;
  background: #fff; transition: box-shadow .2s;
}
.media-item:hover { box-shadow: 0 4px 10px rgba(0,0,0,.08); }
.media-item-img-wrap { position: relative; background: #f9fafb; }
.media-item-img-wrap img { width: 100%; height: 120px; object-fit: cover; display: block; }
.media-badge {
  position: absolute; top: 6px; left: 6px; font-size: 10px; font-weight: 600;
  padding: 2px 8px; border-radius: 20px;
}
.media-badge-used   { background: #dcfce7; color: #166534; }
.media-badge-unused { background: #fef3c7; color: #92400e; }
.media-item-body { padding: 8px 10px; }
.media-item-name { font-size: 12px; font-weight: 500; color: #111; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-item-size { font-size: 11px; color: #9ca3af; margin-top: 2px; }
.media-delete-btn {
  position: absolute; top: 6px; right: 6px; background: rgba(255,255,255,.9);
  border-radius: 6px; padding: 4px 6px; line-height: 1; font-size: 12px;
}
.media-delete-btn:hover { background: #fff; }

/* ── Sidebar icons ───────────────────────────────────────── */
.nav-icon { width: 20px; height: 20px; flex-shrink: 0; }
.action-icon { width: 16px; height: 16px; flex-shrink: 0; }
.sidebar-nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: #9ca3af; text-decoration: none; transition: background-color .2s, color .2s;
}
.sidebar-nav-link:hover { background: #1f2937; color: #fff; }
.sidebar-nav-link.active { background: #15803d; color: #fff; }

/* ── Top accent bar ──────────────────────────────────────── */
.top-accent-bar { height: 4px; background: #2563eb; width: 100%; }

/* ── Filter pills ────────────────────────────────────────── */
.filter-pill-group { display: inline-flex; gap: 4px; background: #f3f4f6; border-radius: 8px; padding: 3px; }
.filter-pill {
  display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 6px;
  font-size: 13px; font-weight: 500; color: #4b5563; text-decoration: none;
  border: none; background: transparent; cursor: pointer; transition: background-color .2s, color .2s;
}
.filter-pill:hover { color: #111; }
.filter-pill.active { background: #15803d; color: #fff; }

/* ── Search input with icon ──────────────────────────────── */
.search-input-wrap { position: relative; flex: 1; min-width: 200px; }
.search-input-wrap .search-icon,
.input-icon-wrap .search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: #9ca3af; pointer-events: none;
}
.search-input-wrap .form-input,
.input-icon-wrap .form-input { width: 100%; padding-left: 36px; }

/* ── Generic icon-prefixed input (login form, etc.) ──────── */
.input-icon-wrap { position: relative; }
.password-toggle-btn {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  color: #9ca3af; padding: 4px; border-radius: 6px; display: flex;
}
.password-toggle-btn:hover { color: #4b5563; background: #f3f4f6; }
.input-icon-wrap .form-input.has-toggle { padding-right: 36px; }

/* ── Misc sizing ──────────────────────────────────────────── */
.h-12 { height: 3rem; }

/* ── Sidebar transition ──────────────────────────────────── */
.sidebar-transition { transition: transform .3s; }
.sidebar-hidden { transform: translateX(-100%); }
@media(min-width:1024px) {
  .sidebar-transition { transform: none !important; }
  .lg\:relative { position: sticky; top: 0; height: 100vh; overflow-y: auto; align-self: flex-start; }
  .lg\:hidden   { display: none !important; }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero-gradient {
  background: linear-gradient(135deg, #cef4dad4 0%, #f7fff9b0 50%, #b9d6fb80 100%);
}
.hero-gradients {
  background: linear-gradient(135deg, #cef4dad4 0%, #f7fff9b0 50%, #b9d6fb80 100%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #dcfce7; color: #166534; font-size: 13px; font-weight: 500;
  padding: 6px 16px; border-radius: 20px; margin-bottom: 20px; border: 1px solid green;
}
.hero-accent { color: #16a34a; }

/* ── Stats band ──────────────────────────────────────────── */
.stats-band { background: #eef7ec; }
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.stat-icon { width: 28px; height: 28px; }
.stat-icon-green  { color: #16a34a; }
.stat-icon-blue   { color: #2563eb; }
.stat-icon-purple { color: #9333ea; }
.stat-icon-orange { color: #f97316; }

/* ── Public search/filter bar ───────────────────────────── */
.public-filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.public-filter-bar .search-input-wrap { flex: 1 1 200px; min-width: 160px; max-width: 280px; }
.public-filter-bar .filter-select { flex: 1 1 140px; min-width: 120px; max-width: 190px; }
@media(max-width: 639px) {
  .public-filter-bar { flex-direction: column; align-items: stretch; }
  .public-filter-bar .search-input-wrap,
  .public-filter-bar .filter-select { max-width: none; width: 100%; }
  .public-filter-bar .filter-select { flex: 1 1 40px; }
  .search-input-wrap .search-icon, .input-icon-wrap .search-icon { top: 45%; }
  .public-filter-bar .search-input-wrap { flex: 1 1 40px; }
  .search-input-wrap .form-input { padding: 10px 10px 10px 32px; }
}
.section-title { font-size: 20px; font-weight: 700; color: #111827; }
.no-results-icon-wrap {
  width: 64px; height: 64px; border-radius: 50%; background: #f3f4f6;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.no-results-icon-wrap .stat-icon { width: 28px; height: 28px; color: #9ca3af; }

/* ── Public navbar ───────────────────────────────────────── */
.navbar-link {
  font-size: 14px; font-weight: 500; color: #4b5563; text-decoration: none; transition: color .2s;
}
.navbar-link:hover, .navbar-link.active { color: #16a34a; }

/* ── Footer (dark green) ─────────────────────────────────── */
.footer-dark {
  background: #0c2818; color: #9ca3af;
}
.footer-dark a { color: #9ca3af; text-decoration: none; transition: color .2s; }
.footer-dark a:hover { color: #fff; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-size: 13px; }
.footer-contact-item .stat-icon { width: 15px; height: 15px; margin-top: 2px; color: #4ade80; flex-shrink: 0; }

/* ── Prose (static pages) ────────────────────────────────── */
.prose h1,.prose h2,.prose h3 { color: #166534; margin: 16px 0 8px; font-weight: 600; }
.prose h1 { font-size: 28px; } .prose h2 { font-size: 22px; } .prose h3 { font-size: 18px; }
.prose p  { margin-bottom: 14px; color: #374151; line-height: 1.75; font-size: 15px; }
.prose a  { color: #15803d; text-decoration: underline; }
.prose ul,.prose ol { padding-left: 24px; margin-bottom: 14px; }
.prose li { margin-bottom: 6px; color: #374151; line-height: 1.6; }
.prose strong { font-weight: 600; }
.prose blockquote {
  border-left: 4px solid #bbf7d0; padding-left: 16px;
  color: #6b7280; font-style: italic; margin: 16px 0;
}

/* ── Responsive helpers ──────────────────────────────────── */
@media(min-width:640px) {
  .sm\:px-6 { padding-left: 24px; padding-right: 24px; }
}
@media(min-width:768px) {
  .md\:flex       { display: flex !important; }
  .md\:hidden     { display: none !important; }
  .md\:grid-cols-2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .md\:grid-cols-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
  .md\:grid-cols-4{ grid-template-columns: repeat(4, minmax(0,1fr)); }
  .md\:py-24      { padding-top: 60px; padding-bottom: 60px; }
  .md\:text-5xl   { font-size: 48px; }
  .md\:table-cell { display: table-cell; }
}
@media(min-width:1024px) {
  .lg\:p-8        { padding: 32px; }
  .lg\:px-8       { padding-left: 32px; padding-right: 32px; }
  .lg\:grid-cols-2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .lg\:grid-cols-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
  .lg\:grid-cols-4{ grid-template-columns: repeat(4, minmax(0,1fr)); }
  .lg\:table-cell { display: table-cell; }
}
/* Translate Y for centering */
.-translate-y-1\/2 { transform: translateY(-50%); }
.col-span-2 { grid-column: span 2; }
@media(max-width:767px) { .col-span-2 { grid-column: span 1; } }
