* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Roboto', 'Noto Sans Devanagari', 'Inter', system-ui, sans-serif;
  background: #f0f4f8;
  color: #1e2a3e;
}

.app {
  display: flex;
  min-height: 100vh;
}

/* ========= SIDEBAR ========= */
.sidebar {
  width: 280px;
  background: linear-gradient(180deg, #002a6e 0%, #003893 100%);
  color: white;
  box-shadow: 4px 0 20px rgba(0,0,0,0.1);
  padding: 1.8rem 1rem;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 1.2rem;
  margin-bottom: 1.5rem;
}

.emblem-logo {
  width: 48px;
  height: auto;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}

.logo-area h2 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.sidebar nav ul {
  list-style: none;
  margin-top: 0.5rem;
}

.sidebar nav li {
  padding: 10px 14px;
  margin: 6px 0;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar nav li i {
  width: 24px;
  font-size: 1rem;
}

.sidebar nav li:hover {
  background: rgba(255,255,255,0.15);
  transform: translateX(4px);
}

.sidebar nav li.active {
  background: #c8102e;
  color: white;
  box-shadow: 0 4px 10px rgba(200,16,46,0.3);
}

.sidebar-footer {
  margin-top: 2rem;
  font-size: 0.75rem;
  text-align: center;
  opacity: 0.7;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1rem;
}

/* ========= MAIN CONTENT ========= */
.main {
  flex: 1;
  padding: 1.8rem 2rem;
  overflow-x: auto;
}

.header h1 {
  font-size: 1.8rem;
  color: #003893;
  border-left: 6px solid #c8102e;
  padding-left: 18px;
  margin-bottom: 8px;
}

.subhead {
  color: #4a627a;
  margin-bottom: 24px;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* stats cards */
.stats-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  border-radius: 28px;
  padding: 1.2rem 1.8rem;
  flex: 1;
  min-width: 140px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.03), 0 2px 4px rgba(0,0,0,0.05);
  border: 1px solid #e9eef3;
  text-align: center;
}

.stat-card i {
  font-size: 2rem;
  margin-bottom: 8px;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: #003893;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #5a6e85;
}

/* overall progress bar */
.overall-progress {
  background: white;
  border-radius: 28px;
  padding: 1rem 1.6rem;
  margin-bottom: 28px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  border: 1px solid #e2e8f0;
}

.progress-title {
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.progress-bar-bg {
  background: #e2e8f0;
  border-radius: 30px;
  height: 26px;
  overflow: hidden;
}

.progress-fill {
  background: linear-gradient(90deg, #003893, #1e4c9e);
  width: 0%;
  height: 100%;
  border-radius: 30px;
  transition: width 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  color: white;
  font-weight: bold;
  font-size: 0.8rem;
}

/* charts row */
.charts-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.chart-box {
  background: white;
  border-radius: 24px;
  padding: 1rem;
  flex: 1;
  min-width: 260px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.05);
  border: 1px solid #eef2f8;
}

.chart-box h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #1e2f44;
  border-left: 4px solid #c8102e;
  padding-left: 12px;
}

canvas {
  max-height: 210px;
  width: 100%;
}

/* section view */
.section-view {
  background: white;
  border-radius: 28px;
  padding: 1.6rem;
  box-shadow: 0 12px 28px rgba(0,0,0,0.05);
  border: 1px solid #eef2fa;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #003893;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px dashed #cbd5e1;
  padding-bottom: 12px;
}

.action-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #edf2f7;
  flex-wrap: wrap;
  gap: 12px;
}

.action-text {
  flex: 4;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #1f2d44;
}

.action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.status-btn {
  border: none;
  padding: 8px 16px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
  transition: 0.2s;
  background: #f1f5f9;
  color: #2c3e5c;
}

.status-btn.active {
  transform: scale(0.96);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.status-btn.not.active { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.status-btn.progress.active { background: #ffedd5; color: #b45309; border: 1px solid #fed7aa; }
.status-btn.done.active { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }

.status-btn:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

/* Footer designer note */
.footer-note {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #c8102e;
  margin-top: 2rem;
  padding: 12px 0;
  background: #fef2f2;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Watermark */
body::after {
  content: "For Testing Purpose";
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-size: 5rem;
  color: rgba(0,0,0,0.05);
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
}

/* responsive */
@media(max-width: 768px) {
  .app { flex-direction: column; }
  .sidebar { width: 100%; padding: 1rem; }
  .main { padding: 1rem; }
  .emblem-logo { width: 40px; }
}