/* Nesakkarangal Status — Mobile-friendly Blue/Green theme */
:root{
  --blue:#1a73e8;
  --green:#33a852;
  --bg:#ffffff;
  --soft:#f5f9ff;
  --text:#0f172a;
  --muted:#64748b;
  --border:rgba(148,163,184,.35);
  --shadow:0 14px 32px rgba(15,23,42,.10);
  --r:16px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:"Inter",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:radial-gradient(circle at top left, rgba(26,115,232,.14) 0%, rgba(51,168,82,.08) 30%, #ffffff 65%);
  color:var(--text);
  line-height:1.5;
}
a{color:inherit}
.container{max-width:1120px;margin:0 auto;padding:0 16px}

.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

/* Header */
.nav{
  position:sticky;top:0;z-index:20;
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.nav-inner{
  display:flex;align-items:center;justify-content:space-between;
  gap:12px;padding:12px 0;
}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none}
.brand-mark{
  width:38px;height:38px;border-radius:999px;
  display:flex;align-items:center;justify-content:center;
  font-weight:900;color:#fff;
  background:linear-gradient(135deg,var(--blue),var(--green));
  box-shadow:0 0 0 4px rgba(26,115,232,.12);
}
.brand-title{font-weight:900;letter-spacing:-.01em}
.brand-sub{font-size:12px;color:var(--muted);margin-top:2px}

.nav-links{display:flex;gap:12px;align-items:center}
.nav-links a{
  text-decoration:none;color:var(--muted);
  padding:8px 10px;border-radius:12px;font-weight:600;font-size:14px;
}
.nav-links a:hover{background:rgba(26,115,232,.08);color:var(--blue)}

.nav-actions{display:flex;gap:10px;align-items:center}

.btn{
  border-radius:999px;
  padding:10px 14px;
  font-weight:700;
  border:1px solid transparent;
  cursor:pointer;
  background:#fff;
}
.btn-outline{
  border-color:rgba(26,115,232,.35);
  color:var(--blue);
}
.btn-outline:hover{border-color:var(--blue);background:rgba(26,115,232,.06)}
.btn-ghost{
  border-color:transparent;
  background:rgba(26,115,232,.06);
  color:var(--blue);
  padding:10px 12px;
}
.btn-ghost:hover{background:rgba(26,115,232,.10)}

.nav-toggle{display:none}

.mobile-menu{
  display:none;
  padding:10px 0 14px;
}
.mobile-menu a{
  display:block;
  padding:10px 0;
  color:var(--muted);
  text-decoration:none;
  border-top:1px solid rgba(148,163,184,.18);
  font-weight:700;
}
.mobile-menu a:hover{color:var(--blue)}

/* Sections */
.section{padding:26px 0}
.section-soft{background:rgba(255,255,255,.75)}
.hero{padding-top:28px}

.kicker{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(26,115,232,.10);
  color:var(--blue);
  font-weight:800;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.hero-head h1{font-size:34px;letter-spacing:-.03em;margin:10px 0 8px}
.lead{max-width:60ch}

.muted{color:var(--muted)}
.small{font-size:13px}

.topline{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 10px}
.pill{
  border:1px solid var(--border);
  background:#fff;
  border-radius:999px;
  padding:6px 10px;
  font-size:13px;
}

/* Filters */
.filters{
  display:grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap:10px;
  margin:12px 0 10px;
}
.filters input,.filters select{
  width:100%;
  padding:11px 12px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  font:inherit;
  min-height:44px;
}
.filters input:focus,.filters select:focus{outline:3px solid rgba(26,115,232,.18);border-color:rgba(26,115,232,.45)}

.tip{font-size:14px;color:var(--muted);margin:8px 0 0}

/* Summary */
.summary{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
  margin-top:14px;
}
.card{
  border:1px solid var(--border);
  border-radius:var(--r);
  background:linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.90));
  padding:12px;
  box-shadow:0 10px 20px rgba(15,23,42,.06);
}
.card-title{font-weight:800;font-size:13px;color:var(--muted)}
.card-count{font-size:30px;font-weight:900;margin-top:6px;letter-spacing:-.02em}
.card-sub{font-size:13px;color:var(--muted);margin-top:2px}

.error{
  margin-top:12px;
  border:1px solid rgba(239,68,68,.35);
  background:rgba(254,242,242,.9);
  color:#7f1d1d;
  border-radius:14px;
  padding:10px;
  white-space:pre-wrap;
}

.note-callout{
  margin-top:12px;
  border:1px solid rgba(51,168,82,.28);
  background:rgba(51,168,82,.06);
  border-radius:14px;
  padding:12px;
}
.note-title{font-weight:900}
.note-body{color:var(--muted);margin-top:4px;font-size:14px}

/* Table */
.table-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
  margin-bottom:10px;
  flex-wrap:wrap;
}
.table-wrap{
  border:1px solid var(--border);
  border-radius:14px;
  overflow:auto;
  background:#fff;
  box-shadow:var(--shadow);
}
table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width:780px;
}
thead th{
  position:sticky;top:0;
  background:#f8fbff;
  text-align:left;
  padding:12px;
  border-bottom:1px solid var(--border);
  white-space:nowrap;
  font-size:13px;
  color:#0b1220;
}
tbody td{
  padding:12px;
  border-bottom:1px solid rgba(148,163,184,.22);
  vertical-align:top;
  font-size:14px;
}
tbody tr:hover{background:rgba(26,115,232,.04)}

/* Status pill */
.status{
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
}

/* Completed – Dark Green */
.s-completed{background:#14532d;color:#ecfdf5}
/* Delayed – Orange */
.s-delayed{background:#ffedd5;color:#9a3412}
/* Risk – Red */
.s-risk{background:#fee2e2;color:#991b1b}
/* No Update – Yellow */
.s-none{background:#fef9c3;color:#854d0e}
/* Fallback */
.s-other{background:#eef2ff;color:#3730a3}

/* Legend */
.legend{display:flex;gap:12px;flex-wrap:wrap}
.legend-item{display:flex;align-items:center;gap:6px;color:var(--muted);font-weight:700;font-size:13px}
.dot{width:10px;height:10px;border-radius:999px;display:inline-block}
.dot-completed{background:#14532d}
.dot-delayed{background:#f59e0b}
.dot-risk{background:#ef4444}
.dot-noupdate{background:#facc15}

/* Footer */
.footer{
  border-top:1px solid var(--border);
  background:rgba(2,6,23,.95);
  color:#e5e7eb;
  padding:18px 0;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.footer-title{font-weight:900}
.footer a{color:#e5e7eb}

/* Responsive */
@media (max-width: 980px){
  .filters{grid-template-columns:1fr 1fr 1fr; }
  .filters input{grid-column:1 / -1;}
  .summary{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media (max-width: 720px){
  .nav-links{display:none}
  .nav-toggle{display:inline-flex}
  .summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero-head h1{font-size:28px}
}

@media (max-width: 420px){
  .summary{grid-template-columns:1fr}
  .brand-sub{display:none}
}
