* {
  box-sizing: border-box;
}

:root {
  --green-dark: #2d8f66;
  --green-mid: #47b35b;
  --green-light: #9fe51f;
  --green-soft: #eef8ef;
  --green-border: #c7dfc8;
}

body {
  margin: 0;
  font-family: Calibri, 'Noto Sans Bengali', 'SolaimanLipi', Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,0.22) 0, rgba(255,255,255,0.08) 18%, transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(159,229,31,0.30) 0, rgba(159,229,31,0.10) 22%, transparent 40%),
    linear-gradient(135deg, #173a2c 0%, #2b9264 38%, #49b45a 68%, #9ce620 100%);
  color: #173a2c;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(255,255,255,0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.16) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.36) 1.2px, transparent 1.7px),
    linear-gradient(135deg, transparent 0 47%, rgba(255,255,255,0.12) 48% 52%, transparent 53% 100%);
  background-size: 48px 48px, 48px 48px, 96px 96px, 160px 160px;
  background-position: 0 0, 0 0, 24px 24px, 0 0;
}

body::after {
  content: "";
  position: fixed;
  inset: auto -80px -140px auto;
  width: 430px;
  height: 430px;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.24);
  box-shadow: 0 0 0 28px rgba(255,255,255,0.035), 0 0 80px rgba(159,229,31,0.24);
}

.topbar {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.10) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.10) 1px, transparent 1px),
    linear-gradient(135deg, rgba(45,143,102,0.96) 0%, rgba(71,179,91,0.94) 55%, rgba(159,229,31,0.92) 100%);
  background-size: 34px 34px, 34px 34px, auto;
  color: white;
  padding: 28px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.topbar h1 {
  margin: 0 0 8px;
  font-size: 30px;
}

.topbar p {
  margin: 0;
  max-width: 920px;
  line-height: 1.5;
  color: rgba(255,255,255,0.92);
}

.container {
  width: min(1180px, 92%);
  margin: 28px auto;
}

.card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(241,249,242,0.94) 100%);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(24, 84, 56, 0.14);
  padding: 26px;
  margin-bottom: 24px;
  border: 1px solid rgba(207, 230, 207, 0.92);
  backdrop-filter: blur(8px);
}

h2 {
  margin-top: 0;
  color: #1f5039;
}

h3 {
  margin: 0 0 4px;
  color: #1f5039;
}

.muted {
  color: #54715f;
  margin-top: -6px;
}

.small {
  font-size: 14px;
  margin-bottom: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 7px;
  color: #224e38;
  line-height: 1.35;
}

label span {
  color: #a94442;
}

input, select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #b9d8bf;
  border-radius: 10px;
  font-size: 15px;
  background: #ffffff;
  color: #173a2c;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

input:focus, select:focus {
  outline: none;
  border-color: #4faf56;
  box-shadow: 0 0 0 3px rgba(78, 181, 84, 0.18);
}

button {
  border: none;
  margin-top: 20px;
  background: linear-gradient(135deg, #2f9365 0%, #45af5d 55%, #8dd92a 100%);
  color: white;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(37, 116, 78, 0.24);
}

button:hover {
  background: linear-gradient(135deg, #287e58 0%, #3c9d56 55%, #7acc24 100%);
}

.secondary {
  background: linear-gradient(180deg, #ffffff, #eff9f0);
  color: #23533c;
  border: 1px solid #c7dfc8;
  box-shadow: none;
}

.secondary:hover {
  background: linear-gradient(180deg, #f8fff8, #eaf6ec);
}

.hidden {
  display: none !important;
}

.message {
  font-weight: 700;
  margin-top: 14px;
}

.message.success {
  color: #1f7a3b;
}

.message.error {
  color: #a94442;
}

.dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0;
  align-items: end;
}

.filters > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.filters label {
  min-height: 44px;
  display: flex;
  align-items: flex-end;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.mini-card {
  background: linear-gradient(180deg, #f7fff6, #ebf8ec);
  border: 1px solid #cce3cb;
  border-radius: 16px;
  padding: 18px;
}

.mini-card span {
  display: block;
  color: #54715f;
  margin-bottom: 8px;
}

.mini-card strong {
  font-size: 26px;
  color: #1f5039;
}

.chart-card {
  border: 1px solid #cfe3cf;
  border-radius: 16px;
  padding: 18px;
  margin: 18px 0 22px;
  background: linear-gradient(180deg, #ffffff, #f2fbf2);
}

.chart-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.bar-row {
  display: grid;
  grid-template-columns: 230px 1fr 120px;
  align-items: center;
  gap: 12px;
}

.bar-label {
  font-weight: 700;
  color: #224e38;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  background: #e5f2e6;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #c4ddc5;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2f9065 0%, #48b159 55%, #99e122 100%);
  border-radius: 999px;
  min-width: 4px;
}

.bar-value {
  font-weight: 700;
  color: #23533c;
  text-align: right;
}

.trend-chart {
  overflow-x: auto;
  padding-bottom: 6px;
}

.trend-bars {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  min-height: 280px;
  padding: 16px 8px 4px;
  border-left: 1px solid #bdd9be;
  border-bottom: 1px solid #bdd9be;
}

.trend-col {
  width: 76px;
  min-width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.trend-value {
  font-weight: 700;
  font-size: 13px;
  color: #23533c;
  margin-bottom: 6px;
  text-align: center;
}

.trend-bar {
  width: 42px;
  min-height: 4px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #a7e842 0%, #4cb35a 60%, #2f8e66 100%);
}

.trend-label {
  font-size: 12px;
  font-weight: 700;
  color: #224e38;
  margin-top: 8px;
  text-align: center;
  line-height: 1.15;
}

.trend-count {
  font-size: 12px;
  color: #54715f;
  margin-top: 3px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid #cfe3cf;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th {
  background: linear-gradient(135deg, #2e8f65 0%, #46b15c 55%, #98e421 100%);
  color: white;
  padding: 13px;
  text-align: left;
  white-space: nowrap;
}

td {
  padding: 12px 13px;
  border-bottom: 1px solid #edf0f2;
}

tr:nth-child(even) {
  background: #fafbfb;
}

.note {
  color: #54715f;
  font-size: 14px;
  margin-bottom: 0;
}

footer {
  text-align: center;
  color: #54715f;
  padding: 20px;
}

.title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-right: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.20), 0 8px 22px rgba(23,58,44,0.16);
  transform: translateY(2px);
}


.title-icon-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
}

.section-icon {
  display: inline-block;
  margin-right: 6px;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #eff9f0);
  border: 1px solid #c7dfc8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  margin-bottom: 10px;
  box-shadow: 0 6px 18px rgba(70, 76, 83, 0.08);
}

.dashboard-context {
  background: linear-gradient(135deg, rgba(43,146,100,0.08) 0%, rgba(159,229,31,0.12) 100%);
  border: 1px solid #c7dfc8;
  border-radius: 18px;
  padding: 22px;
  margin: 18px 0 24px;
  box-shadow: 0 10px 24px rgba(41, 126, 87, 0.10);
}

.dashboard-context h3 {
  margin: 0 0 6px;
  font-size: 24px;
  color: #1f5039;
}

.dashboard-context h4 {
  margin: 0 0 14px;
  font-size: 19px;
  color: #5c6168;
}

.dashboard-context p {
  margin: 10px 0;
  line-height: 1.7;
  color: #365944;
  font-size: 16px;
}

.dashboard-context strong {
  color: #1f5039;
}

.intro-context {
  margin-top: 0;
  margin-bottom: 24px;
}


.input-context-highlight {
  background: linear-gradient(135deg, rgba(43,146,100,0.08) 0%, rgba(159,229,31,0.12) 100%);
  border: 1px solid #c7dfc8;
  border-radius: 16px;
  padding: 18px;
  margin: 14px 0 22px;
  box-shadow: 0 10px 24px rgba(41, 126, 87, 0.10);
}

.input-context-highlight h3 {
  margin: 0 0 8px;
  color: #1f5039;
}

.input-context-highlight p {
  margin: 8px 0;
  line-height: 1.65;
  color: #365944;
}

.input-context-highlight .limit-note {
  background: #edf8ee;
  border: 1px solid #cfe6cf;
  border-radius: 12px;
  padding: 12px;
  margin-top: 12px;
}

.input-context-highlight strong {
  display: block;
  margin-top: 6px;
  color: #1f5039;
}


.mini-n {
  font-size: 11px;
  font-weight: 400;
  color: #54715f;
}


.developer-credit {
  margin: 24px 0 18px;
  padding: 20px;
  border: 1px solid #c7dfc8;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #eef8ef);
  text-align: center;
  box-shadow: 0 10px 24px rgba(41, 126, 87, 0.10);
}

.developer-credit p {
  margin: 0 0 12px;
  font-weight: 700;
  color: #1f5039;
}

.developer-credit a {
  color: #1f5039;
  text-decoration: none;
}

.developer-credit a:hover {
  text-decoration: underline;
}

.developer-credit img {
  max-width: 260px;
  width: 70%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

@media (max-width: 980px) {
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bar-row {
    grid-template-columns: 160px 1fr 100px;
  }
}

@media (max-width: 780px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .grid-2,
  .filters,
  .summary-cards {
    grid-template-columns: 1fr;
  }

  .dashboard-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .bar-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .bar-value {
    text-align: left;
  }
}
