/* Lakeview Health Collaborative — Shared Styles */
/* CWRU Color Palette */

:root {
  --cwru-blue: #003071;
  --cwru-light-blue: #A6D2E6;
  --cwru-true-blue: #007AB8;
  --force-blue: #2359ef;
  --cwru-dark-blue: #09143A;
  --light-gray: #D3D3D399;
  --dark-gray: #999999;
  --vivid-green: #61A530;
  --violet-purple: #692C95;
  --blue-green: #377E72;
  --orange: #FF9239;
  --copper-red: #D63D1F;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  font-family: var(--font);
  background: #f4f6f9;
  color: #1a1a2e;
  min-height: 100vh;
}

/* ── NAV ── */
nav {
  background: var(--cwru-dark-blue);
  border-bottom: 2px solid var(--cwru-true-blue);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 0;
  height: 54px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: 2rem;
  flex-shrink: 0;
}

.nav-logo {
  width: 28px;
  height: 28px;
  background: rgba(0,122,184,0.35);
  border: 1.5px solid var(--cwru-true-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo svg { display: block; }

.nav-brand-text {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.nav-brand-sub {
  font-size: 10px;
  color: var(--cwru-light-blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
  flex: 1;
}

.nav-links a {
  display: block;
  padding: 0 1rem;
  height: 54px;
  line-height: 54px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.05);
}

.nav-links a.active {
  color: #ffffff;
  border-bottom-color: var(--cwru-true-blue);
}

.nav-badge {
  background: var(--copper-red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  vertical-align: 1px;
}

/* ── PAGE WRAPPER ── */
.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

.page-content-wide {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

/* ── SECTION HEADERS ── */
.section-header {
  margin-bottom: 1.5rem;
}

.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cwru-true-blue);
  margin-bottom: 6px;
  font-weight: 600;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--cwru-blue);
  line-height: 1.2;
}

.section-sub {
  font-size: 0.95rem;
  color: #555;
  margin-top: 0.4rem;
  line-height: 1.6;
}

.section-divider {
  height: 1px;
  background: #dde3ec;
  margin: 2.5rem 0;
}

/* ── CARDS ── */
.card {
  background: #ffffff;
  border: 1px solid #dde3ec;
  border-radius: 10px;
  padding: 1.5rem;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

/* ── STAT CARDS ── */
.stat-card {
  background: #ffffff;
  border: 1px solid #dde3ec;
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
}

.stat-card-num {
  font-size: 2rem;
  font-weight: 600;
  color: var(--cwru-blue);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card-label {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.stat-card.critical .stat-card-num { color: var(--copper-red); }
.stat-card.warn .stat-card-num { color: var(--orange); }
.stat-card.good .stat-card-num { color: var(--vivid-green); }

/* ── STATUS BADGES ── */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.badge-red { background: #fde8e8; color: var(--copper-red); }
.badge-orange { background: #fff0e0; color: #c47300; }
.badge-green { background: #eaf4e0; color: #3a6e10; }
.badge-blue { background: #e0edf8; color: #0b4b80; }
.badge-gray { background: #f0f0f0; color: #555; }

/* ── NAV BUTTONS (homepage) ── */
.nav-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #dde3ec;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: var(--cwru-blue);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  border-left: 4px solid var(--cwru-true-blue);
}

.nav-btn:hover {
  border-color: var(--cwru-true-blue);
  box-shadow: 0 4px 12px rgba(0,48,113,0.1);
  transform: translateY(-2px);
}

.nav-btn-icon {
  width: 36px;
  height: 36px;
  background: #e8f0fb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.nav-btn-icon svg { display: block; }

.nav-btn-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--cwru-blue);
}

.nav-btn-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

/* ── TABLE STYLES ── */
.data-table-wrap {
  overflow-x: auto;
  border: 1px solid #dde3ec;
  border-radius: 10px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.data-table thead tr {
  background: var(--cwru-blue);
  color: #ffffff;
}

.data-table thead th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table tbody tr {
  border-bottom: 1px solid #eef1f6;
  transition: background 0.15s;
}

.data-table tbody tr:hover { background: #f7f9fc; }

.data-table tbody td {
  padding: 9px 14px;
  vertical-align: middle;
  line-height: 1.4;
}

.data-table .subhead td {
  background: #eef3fb;
  color: var(--cwru-blue);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 7px 14px;
  border-bottom: 1px solid #d0dcea;
}

.data-table .insight td {
  background: #f0f6ff;
  color: #2a4a7f;
  font-size: 12.5px;
  font-style: italic;
  padding: 10px 14px;
  border-bottom: 2px solid #d0dcea;
}

/* ── INDICATOR DOTS ── */
.ind {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: -1px;
  flex-shrink: 0;
}

.ind-red { background: var(--copper-red); }
.ind-orange { background: var(--orange); }
.ind-green { background: var(--vivid-green); }
.ind-gray { background: #aaa; }

/* ── PROGRESS BARS ── */
.bar-track {
  width: 100%;
  height: 7px;
  background: #e8ecf2;
  border-radius: 4px;
  overflow: hidden;
  display: inline-block;
}

.bar-fill-blue { height: 100%; background: var(--cwru-true-blue); border-radius: 4px; }
.bar-fill-red { height: 100%; background: var(--copper-red); border-radius: 4px; }
.bar-fill-orange { height: 100%; background: var(--orange); border-radius: 4px; }
.bar-fill-green { height: 100%; background: var(--vivid-green); border-radius: 4px; }

/* ── FOOTER ── */
footer {
  background: var(--cwru-dark-blue);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 12px;
  margin-top: 4rem;
}

footer strong {
  color: rgba(255,255,255,0.8);
}

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  nav { padding: 0 1rem; }
  .page-content, .page-content-wide { padding: 1.5rem 1rem; }
  .nav-links a { padding: 0 0.6rem; font-size: 12px; }
  .nav-brand-text { display: none; }
}
