:root {
  --primary: #1b7a3e;
  --primary-dark: #14602f;
  --primary-light: #e8f5ec;
  --grey-bg: #f5f7f6;
  --text: #212529;
  --muted: #6c757d;
  --border: #dee2e6;
}

* { -webkit-tap-highlight-color: transparent; }

body {
  font-family: 'Segoe UI', 'Noto Sans Devanagari', system-ui, sans-serif;
  background: var(--grey-bg);
  color: var(--text);
  padding-bottom: 80px;
}

/* हेडर */
.site-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  position: sticky;
  top: 0;
  z-index: 100;
}
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; }
.brand:hover { color: #fff; }
.brand-logo { width: 40px; height: 40px; border-radius: 50%; background: #fff; object-fit: cover; }
.brand-icon { font-size: 1.8rem; }
.brand-title { font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.brand-sub { font-size: .75rem; opacity: .9; }

/* काउंटर */
.stats-bar { padding: 1rem 0; }
.stat-box {
  background: #fff;
  border-radius: 12px;
  padding: .75rem .5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  border-top: 3px solid var(--primary);
}
.stat-box.stat-pending { border-top-color: #f0ad4e; }
.stat-box.stat-resolved { border-top-color: #28a745; }
.stat-num { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.stat-pending .stat-num { color: #d39e00; }
.stat-resolved .stat-num { color: #1e7e34; }
.stat-label { font-size: .78rem; color: var(--muted); }

/* फ़िल्टर */
.filter-section { padding: .5rem 0 1rem; }
.filter-card {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.form-label { font-weight: 600; color: #495057; }

/* शिकायत कार्ड */
.section-title { font-size: 1.15rem; font-weight: 700; color: var(--primary-dark); }
.complaint-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
  transition: transform .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
}
.complaint-card:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.complaint-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: .75rem .9rem;
  border-bottom: 1px solid var(--border);
  background: #fafcfb;
  gap: .5rem;
}
.complainant-info { display: flex; gap: .6rem; align-items: center; min-width: 0; }
.complainant-photo {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--primary-light); flex-shrink: 0;
}
.complainant-photo.placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); color: var(--primary); font-size: 1.3rem;
}
.complainant-name { font-weight: 600; font-size: .95rem; }
.complainant-meta { font-size: .75rem; color: var(--muted); }

.complaint-card-body { padding: .9rem; flex-grow: 1; display: flex; flex-direction: column; gap: .5rem; }
.complaint-id { font-size: .8rem; color: var(--primary-dark); font-weight: 600; }
.complaint-category { display: flex; gap: .35rem; flex-wrap: wrap; }
.complaint-category .badge { font-weight: 500; font-size: .7rem; }
.complaint-desc { font-size: .88rem; color: #343a40; margin: 0; flex-grow: 1; }
.complaint-footer { display: flex; justify-content: space-between; align-items: center; margin-top: .4rem; }
.resolution-box {
  background: #e8f7ee; border-left: 3px solid #28a745;
  padding: .5rem .6rem; border-radius: 6px; font-size: .82rem;
}

/* स्थिति बैज */
.status-badge {
  display: inline-block;
  padding: .28rem .6rem;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.status-review { background: #fff3cd; color: #856404; }
.status-pending { background: #ffe0b2; color: #b26a00; }
.status-progress { background: #cfe2ff; color: #084298; }
.status-resolved { background: #d1e7dd; color: #0f5132; }
.status-rejected { background: #f8d7da; color: #842029; }

/* FAB */
.fab-btn {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(27,122,62,.4);
  z-index: 99;
  text-decoration: none;
}
.fab-btn:hover { background: var(--primary-dark); color: #fff; }

/* विवरण */
.detail-photo {
  width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--primary-light);
}
.detail-photo.placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); color: var(--primary); font-size: 2rem;
}

/* फुटर */
.site-footer { background: #fff; border-top: 1px solid var(--border); margin-top: 2rem; }

/* प्रतिक्रियाशील */
@media (max-width: 576px) {
  .stat-num { font-size: 1.25rem; }
  .brand-title { font-size: .95rem; }
  .brand-sub { font-size: .68rem; }
}

/* एडमिन */
.admin-sidebar { background: #14602f; min-height: 100vh; color: #fff; }
.admin-sidebar a { color: #cfe8d8; text-decoration: none; padding: .6rem 1rem; display: block; border-radius: 6px; margin: .15rem 0; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,.12); color: #fff; }
.admin-main { background: var(--grey-bg); min-height: 100vh; }