/* ──────────────────────────────────────────────────────────────────────
   ZeroWaste+ Status Page — Dropbox-style layout  v2.2
────────────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --zw-green:      #1A6B3C;
  --zw-green-bg:   #e8f5ed;
  --zw-navy:       #1B3A5C;
  --gray-100:      #f5f5f5;
  --gray-200:      #e5e5e5;
  --gray-400:      #999;
  --gray-600:      #555;
  --gray-900:      #1a1a1a;
  --radius:        6px;
  --pad:           clamp(16px, 4vw, 40px);
}

/* PAGE */
.zw-dropbox-layout {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-900);
  background: #fff;
  width: 100%;
  max-width: 100%;
  padding: 0;
}

/* ── TOP NAV BAR ── */
.zws-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  height: 48px;
  border-bottom: 1px solid var(--gray-200);
  background: #fff;
  gap: 12px;
  flex-wrap: wrap;
}
.zws-topnav { display: flex; gap: 0; }
.zws-topnav-link {
  display: block;
  padding: 0 16px;
  height: 48px;
  line-height: 48px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.zws-topnav-link:hover    { color: var(--gray-900); }
.zws-topnav-active        { color: var(--gray-900) !important; border-bottom-color: var(--gray-900); }
.zws-topbar-right         { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* SUBSCRIBE BTN */
.zws-subscribe-btn {
  background: var(--zw-navy); color: #fff;
  border: none; border-radius: var(--radius);
  padding: 7px 16px; font-size: 13px;
  font-family: 'DM Sans', sans-serif; font-weight: 600;
  cursor: pointer; transition: background .15s;
  white-space: nowrap;
}
.zws-subscribe-btn:hover { background: var(--zw-green); }

/* RESET BTN */
.zws-reset-btn {
  background: #fff; color: #15803d;
  border: 1.5px solid #22c55e; border-radius: var(--radius);
  padding: 6px 14px; font-size: 13px;
  font-family: 'DM Sans', sans-serif; font-weight: 600;
  cursor: pointer; transition: background .15s;
  white-space: nowrap;
}
.zws-reset-btn:hover    { background: #f0fdf4; }
.zws-reset-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ── OVERALL BANNER ── */
.zws-banner {
  margin-top: 16px;
  padding: 14px var(--pad);
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(14px, 2.5vw, 16px);
  font-weight: 600;
  text-align: right;
  border-radius: var(--radius);
}
.banner--green  { background: #166534; color: #fff; }
.banner--yellow { background: #854d0e; color: #fff; }
.banner--orange { background: #9a3412; color: #fff; }
.banner--red    { background: #991b1b; color: #fff; }
.banner--blue   { background: #1e3a8a; color: #fff; }

/* ── ACTIVE INCIDENTS ── */
.zws-active-block {
  padding: 0 var(--pad);
  margin: 20px 0 0;
}
.zws-active-inc {
  border-left: 4px solid #f97316;
  background: #fff8f4;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 10px;
}
.zws-active-inc.zws-inc-critical { border-color: #ef4444; background: #fff2f2; }
.zws-active-inc.zws-inc-minor    { border-color: #eab308; background: #fffdf0; }
.zws-active-inc-head {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin-bottom: 6px;
}
.zws-active-inc-head strong { font-size: 14px; font-weight: 600; }
.zws-inc-badge {
  font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .04em;
  white-space: nowrap;
}
.zws-inc-badge--investigating { background: #fef9c3; color: #a16207; }
.zws-inc-badge--identified    { background: #ffedd5; color: #c2410c; }
.zws-inc-badge--monitoring    { background: #dbeafe; color: #1d4ed8; }
.zws-inc-badge--resolved      { background: #dcfce7; color: #15803d; }
.zws-inc-time { font-size: 11px; color: var(--gray-400); display: block; margin-top: 6px; }

/* ── SERVICES GRID (Dropbox style) ── */
.zws-grid-wrap {
  padding: 20px var(--pad) 0;
}
.zws-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.zws-grid-col { display: flex; flex-direction: column; }
.zws-grid-col:first-child { border-right: 1px solid var(--gray-200); }

.zws-grid-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--gray-200);
  background: #fff;
  transition: background .12s;
  gap: 8px;
}
.zws-grid-row:last-child    { border-bottom: none; }
.zws-grid-row:hover         { background: #fafafa; }
.zws-svc-name { font-size: 13px; font-weight: 500; color: var(--gray-900); }

/* Status icon circles */
.zws-svc-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
  cursor: default;
}
.si--green  { background: #dcfce7; color: #15803d; }
.si--yellow { background: #fef9c3; color: #a16207; }
.si--orange { background: #ffedd5; color: #c2410c; }
.si--red    { background: #fee2e2; color: #b91c1c; }
.si--blue   { background: #dbeafe; color: #1d4ed8; }

/* ── LEGEND ── */
.zws-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 4px;
  border-top: 1px solid transparent;
}
.zws-legend-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--gray-600);
}
.zws-leg-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 10px; font-weight: 700;
}

/* ── PAST INCIDENTS ── */
.zws-past-wrap {
  padding: 32px var(--pad) 48px;
}
.zws-past-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 24px;
}
.zws-past-day {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
}
.zws-past-day:last-child { border-bottom: none; }
.zws-past-date {
  font-weight: 700;
  font-size: 14px;
  color: var(--gray-900);
  margin-bottom: 6px;
}
.zws-past-none {
  font-size: 13px;
  color: var(--gray-400);
}
.zws-past-inc {
  background: #fafafa;
  border-left: 3px solid var(--gray-200);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 10px 14px;
  margin-top: 8px;
}
.zws-past-inc-head {
  display: flex; align-items: center;
  justify-content: space-between; gap: 8px; flex-wrap: wrap;
  margin-bottom: 4px;
}
.zws-past-inc-title { font-size: 13px; font-weight: 600; }
.zws-past-inc-body  { font-size: 12px; color: var(--gray-600); margin-bottom: 4px; }

/* ── MODAL ── */
.zws-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.zws-modal {
  background: #fff; border-radius: 12px;
  padding: clamp(24px,5vw,40px);
  width: 100%; max-width: 420px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}
.zws-modal h3  { font-family:'Space Grotesk',sans-serif; font-size:19px; color:var(--zw-navy); margin-bottom:8px; }
.zws-modal p   { font-size:13px; color:var(--gray-600); margin-bottom:14px; }
.zws-modal-input {
  display:block; width:100%; padding:10px 13px;
  border:1.5px solid var(--gray-200); border-radius:var(--radius);
  font-size:14px; font-family:'DM Sans',sans-serif;
  margin-bottom:10px; outline:none;
  transition:border-color .15s;
}
.zws-modal-input:focus { border-color:var(--zw-green); }
.zws-modal-close {
  position:absolute; top:12px; right:14px;
  background:none; border:none; font-size:17px;
  cursor:pointer; color:var(--gray-400);
}
.zws-modal-note { font-size:13px; color:var(--zw-green); margin-top:6px; }

/* Tooltip (kept for any future use) */
.zws-tooltip { font-family:'DM Sans',system-ui,sans-serif !important; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .zws-grid { grid-template-columns: 1fr; }
  .zws-grid-col:first-child { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .zws-topbar { height: auto; padding-top: 10px; padding-bottom: 10px; }
  .zws-topnav-link { height: auto; line-height: 1.4; padding: 8px 10px; }
  .zws-legend { gap: 10px; }
}
@media (max-width: 400px) {
  .zws-topbar-right { width: 100%; justify-content: flex-end; }
}
