/* ===================================== */
/*          AGRIHUB DASHBOARD UI        */
/* ===================================== */

:root {
  --primary: #1f4d2e;
  --accent: #3c8d40;
  --bg-soft: #f4f7f5;
  --card-bg: #ffffff;
  --text-dark: #1e2d24;
  --text-light: #5f6f66;
  --border: #e4ece7;
}

/* ===== BASE ===== */

body {
  background: var(--bg-soft);
  font-family: "Poppins", sans-serif;
  color: var(--text-dark);
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 60px 20px;
}

/* ================= HERO ================= */

.dashboard-hero {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 60px 50px;
  border-radius: 22px;
  color: white;
  margin-bottom: 50px;
}

.dashboard-hero h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-sub {
  font-size: 15px;
  opacity: 0.95;
}

/* ================= STAT CARDS ================= */

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 45px;
}

.stat-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 18px;
  transition: 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.stat-emoji {
  font-size: 30px;
}

.stat-card h3 {
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-card p {
  font-size: 14px;
  color: var(--text-light);
}

/* ================= DASHBOARD GRID ================= */

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

/* ================= DEPARTMENT CARD ================= */

.dashboard-card {
  background: var(--card-bg);
  border-radius: 22px;
  padding: 30px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.dashboard-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.06);
  border-color: var(--accent);
}

.dashboard-card h3 {
  font-size: 18px;
  color: var(--primary);
  font-weight: 600;
}

.dashboard-card .count {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
}

.dashboard-card p {
  font-size: 14px;
  color: var(--text-light);
}

.dashboard-card .view {
  margin-top: 10px;
  font-weight: 600;
  color: var(--primary);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
  .dashboard-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {

  .dashboard-hero {
    padding: 45px 25px;
    text-align: center;
  }

  .dashboard-hero h2 {
    font-size: 24px;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 22px;
  }
}