
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans Bengali", "Segoe UI", sans-serif;
  background: #f3f6fa;
  color: #1e293b;
}

.topbar {
  background: #123d32;
  color: white;
  padding: 16px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  background: #e5b84b;
  color: #123d32;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 19px;
}

.brand h2 {
  font-size: 17px;
}

.brand small {
  color: #c7d8d1;
}

.container {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 18px;
}

.hidden {
  display: none !important;
}

.auth-card {
  max-width: 470px;
  background: white;
  margin: 55px auto;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 30px #102d2510;
}

.welcome {
  text-align: center;
  margin-bottom: 25px;
}

.welcome h1 {
  color: #123d32;
  font-size: 30px;
}

.welcome p,
.muted {
  color: #64748b;
  margin-top: 7px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.tab {
  flex: 1;
  padding: 12px;
  border: 0;
  border-radius: 8px;
  background: #edf2f0;
  cursor: pointer;
  font-weight: 600;
}

.tab.active {
  background: #123d32;
  color: white;
}

label {
  display: block;
  margin: 16px 0 7px;
  font-weight: 600;
  font-size: 14px;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #dbe3e8;
  border-radius: 8px;
  outline: none;
  background: white;
  font: inherit;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #17815f;
  box-shadow: 0 0 0 3px #17815f15;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.btn {
  border: 0;
  border-radius: 8px;
  padding: 11px 17px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
}

.primary {
  background: #167653;
  color: white;
}

.primary:hover {
  background: #105b40;
}

.secondary {
  background: #e8efec;
  color: #123d32;
}

.danger {
  background: #dc4545;
  color: white;
}

.full {
  width: 100%;
  margin-top: 20px;
}

.dashboard-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.dashboard-heading h1 {
  font-size: 27px;
  color: #123d32;
}

.badge {
  background: #dcefe6;
  color: #176342;
  padding: 8px 13px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 800;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  border-left: 4px solid #2563eb;
  box-shadow: 0 4px 15px #00000008;
}

.stat-card span {
  color: #64748b;
  font-size: 13px;
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 29px;
}

.stat-card.green {
  border-color: #16a34a;
}

.stat-card.yellow {
  border-color: #eab308;
}

.stat-card.red {
  border-color: #dc4545;
}

.panel {
  background: white;
  padding: 23px;
  border-radius: 13px;
  margin-bottom: 22px;
  box-shadow: 0 4px 15px #00000008;
}

.panel h2 {
  font-size: 19px;
  margin-bottom: 17px;
  color: #123d32;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-weight: 400;
}

.consent input {
  width: auto;
  margin-top: 4px;
}

.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.filters select {
  max-width: 230px;
}

.application-card,
.worker-card {
  border: 1px solid #e4e9ed;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.application-card h3 {
  color: #123d32;
  margin-bottom: 8px;
}

.application-card p,
.worker-card p {
  color: #64748b;
  margin: 5px 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.status {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin: 8px 0;
}

.status.pending {
  background: #fff4d4;
  color: #916300;
}

.status.approved {
  background: #d9f5e3;
  color: #126b37;
}

.status.rejected {
  background: #ffe0e0;
  color: #b42323;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.photo-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.photo-links a {
  color: #167653;
  font-weight: 600;
  font-size: 13px;
}

.message {
  margin-top: 14px;
  color: #167653;
  font-size: 14px;
}

.message.error {
  color: #dc4545;
}

footer {
  text-align: center;
  padding: 25px;
  color: #64748b;
  font-size: 13px;
}

@media(max-width: 750px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .auth-card {
    margin: 25px auto;
    padding: 20px;
  }

  .panel {
    padding: 17px;
  }

  .brand h2 {
    font-size: 14px;
  }

  .dashboard-heading h1 {
    font-size: 21px;
  }
}

@media(max-width: 420px) {
  .filters {
    flex-direction: column;
  }

  .filters select {
    max-width: none;
  }

  .stats-grid {
    gap: 9px;
  }

  .stat-card {
    padding: 14px;
  }
}
