.form-card {
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 1.25rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.form-card label {
  display: grid;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 700;
  color: #334155;
}
.btn-primary,
.btn-secondary {
  display: inline-flex;
  min-height: 2.875rem;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border-radius: 999px;
  padding: .8rem 1.25rem;
  font-size: .92rem;
  font-weight: 800;
  line-height: 1;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn-primary {
  background: #16a34a;
  color: #fff;
  box-shadow: 0 12px 24px rgba(22, 163, 74, .22);
}
.btn-primary:hover,
.btn-primary:focus {
  background: #166534;
  box-shadow: 0 16px 32px rgba(22, 101, 52, .22);
  transform: translateY(-2px);
}
.btn-secondary {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}
.btn-secondary:hover,
.btn-secondary:focus {
  border-color: #86efac;
  color: #166534;
  transform: translateY(-2px);
}
.hero-visual {
  position: relative;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 1.75rem;
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 48%, #f0fdf4 100%);
  padding: clamp(1rem, 2vw, 1.5rem);
  box-shadow: 0 28px 70px rgba(15, 23, 42, .14);
}
.hero-visual img {
  display: block;
  width: 100%;
  border-radius: 1.25rem;
}
.agri-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .26), transparent 26%),
    linear-gradient(135deg, #14532d 0%, #16a34a 48%, #2563eb 100%);
  box-shadow: 0 24px 55px rgba(20, 83, 45, .24);
}
.agri-card::after {
  content: "";
  position: absolute;
  inset: auto -18% -46% 34%;
  height: 14rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  transform: rotate(-13deg);
}
.agri-card-content {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 18rem;
  gap: 1.25rem;
  padding: clamp(1.25rem, 4vw, 2rem);
}
.card-chip {
  width: 3.2rem;
  height: 2.3rem;
  border-radius: .7rem;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  box-shadow: inset 0 0 0 1px rgba(120, 53, 15, .18);
}
.card-number {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  letter-spacing: .08em;
  word-spacing: .35rem;
}
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  padding: .8rem 1rem;
  color: #334155;
  font-size: .92rem;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus,
select:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 4px #dcfce7;
}
input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}
.data-table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  border-spacing: 0;
  background: #fff;
  font-size: .9rem;
  white-space: nowrap;
}
.data-table tbody,
.data-table thead,
.data-table tr {
  width: 100%;
}
.data-table th {
  background: #f0fdf4;
  color: #166534;
  text-align: left;
  padding: .9rem 1rem;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.data-table td {
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  padding: .9rem 1rem;
  vertical-align: middle;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table tr:hover td {
  background: #f8fafc;
}
.data-table::-webkit-scrollbar {
  height: .45rem;
}
.data-table::-webkit-scrollbar-thumb {
  background: #bbf7d0;
  border-radius: 999px;
}
.mobile-nav-item {
  display: flex;
  min-height: 3.5rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .22rem;
  border-radius: 1rem;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.mobile-nav-item i {
  font-size: 1.05rem;
}
.mobile-nav-item:hover,
.mobile-nav-item:focus {
  background: #f0fdf4;
  color: #16a34a;
  transform: translateY(-1px);
}
.footer-link {
  width: fit-content;
  color: #64748b;
  transition: color .2s ease, transform .2s ease;
}
.footer-link:hover {
  color: #16a34a;
  transform: translateX(2px);
}
@media (max-width: 767px) {
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}
html {
  scroll-behavior: smooth;
}
.badge-success {
  background: #dcfce7;
  color: #166534;
  border-radius: 999px;
  padding: .25rem .7rem;
  font-weight: 700;
}
.stat-card {
  background: #fff;
  border: 1px solid #dcfce7;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .09);
}
.stat-card span {
  display: block;
  color: #64748b;
  font-size: .78rem;
  font-weight: 700;
}
.stat-card strong {
  display: block;
  margin-top: .5rem;
  color: #166534;
  font-size: 1.4rem;
}
.dashboard-page {
  background: #e9e9e7;
}
.app-shell {
  width: 100%;
  margin: 0;
  display: grid;
  min-height: 100vh;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 1rem;
  border-radius: 0;
  background: #f7f7f5;
  padding: .75rem;
}
.app-sidebar {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border-radius: 1.35rem;
  background: #fbfbfa;
  padding: 1rem;
}
.brand-mark {
  display: grid;
  height: 2.35rem;
  width: 2.35rem;
  place-items: center;
  border-radius: .75rem;
  background: linear-gradient(135deg, #059669, #16a34a);
  color: #fff;
  box-shadow: 0 12px 24px rgba(5, 150, 105, .24);
}
.side-title {
  margin: 1.6rem 0 .55rem;
  color: #9aa19b;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.side-link {
  display: flex;
  min-height: 2.65rem;
  align-items: center;
  gap: .75rem;
  border-radius: .9rem;
  padding: .7rem .75rem;
  color: #67706a;
  font-size: .88rem;
  font-weight: 700;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.side-link i {
  width: 1rem;
  text-align: center;
}
.side-link:hover,
.side-link.is-active {
  background: #dceee4;
  color: #087d50;
}
.side-link:hover {
  transform: translateX(2px);
}
.sidebar-upgrade {
  margin-top: auto;
  border-radius: 1rem;
  background: linear-gradient(160deg, #059669, #087d50);
  padding: 1rem;
  color: #fff;
}
.dashboard-main {
  min-width: 0;
  padding: .45rem;
}
.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .35rem .35rem 1rem;
}
.search-pill {
  display: flex;
  min-width: min(100%, 19rem);
  align-items: center;
  gap: .65rem;
  border-radius: 999px;
  background: #fff;
  padding: .75rem 1rem;
  color: #7b827e;
  font-size: .85rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
}
.top-icon {
  display: grid;
  height: 2.35rem;
  width: 2.35rem;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
}
.dash-card {
  border: 1px solid #ecefed;
  border-radius: 1.25rem;
  background: #fff;
  padding: clamp(1rem, 2vw, 1.35rem);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .045);
}
.metric-card {
  min-height: 9.25rem;
}
.metric-icon {
  display: grid;
  height: 2rem;
  width: 2rem;
  place-items: center;
  border-radius: .7rem;
  background: #e8f6ef;
  color: #069564;
}
.metric-value {
  margin-top: 1.2rem;
  color: #111827;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 900;
  line-height: 1;
}
.soft-btn {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border-radius: 999px;
  background: #f2f3f1;
  padding: .7rem 1rem;
  color: #111827;
  font-size: .86rem;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease;
}
.soft-btn:hover {
  background: #e6eee9;
  transform: translateY(-1px);
}
.progress-track {
  overflow: hidden;
  height: .55rem;
  border-radius: 999px;
  background: #edf0ee;
}
.progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #16a34a, #10b981);
}
.mini-status {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: 999px;
  background: #ecfdf5;
  padding: .35rem .65rem;
  color: #047857;
  font-size: .74rem;
  font-weight: 800;
}
.mini-status.warning {
  background: #fff7ed;
  color: #c2410c;
}
.mini-status.danger {
  background: #fef2f2;
  color: #b91c1c;
}
.overview-bars {
  display: grid;
  height: 12rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: .75rem;
}
.overview-bars span {
  display: block;
  border-radius: 999px 999px .45rem .45rem;
  background: linear-gradient(180deg, #10b981, #d9f4ea);
}
.procedure-step {
  display: flex;
  align-items: center;
  gap: .85rem;
  border-radius: 1rem;
  background: #f5f6f4;
  padding: .9rem;
}
.procedure-step i {
  display: grid;
  height: 2.25rem;
  width: 2.25rem;
  place-items: center;
  flex: 0 0 auto;
  border-radius: .8rem;
  background: #fff;
  color: #059669;
}
.admin-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .45rem .75rem;
  font-size: .75rem;
  font-weight: 800;
}
@media (max-width: 1023px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .app-sidebar {
    min-height: auto;
  }
  .dashboard-main {
    padding: 0;
  }
}
@media (max-width: 767px) {
  .dashboard-page {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
  }
  .app-shell {
    gap: 0;
    padding: .6rem;
  }
  .app-sidebar {
    display: none;
  }
  .dash-card,
  .form-card {
    border-radius: 1rem;
  }
  .dashboard-topbar {
    align-items: stretch;
    flex-direction: column;
  }
  .search-pill {
    min-width: 100%;
  }
}
