body { font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif; }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  color: #cbe3e3;
  font-size: 0.92rem;
  transition: background-color 0.15s;
  cursor: pointer;
}
.sidebar-link:hover { background-color: rgba(255,255,255,0.08); color: #fff; }
.sidebar-link.active { background-color: rgba(255,255,255,0.15); color: #fff; font-weight: 600; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.card { background: #fff; border: 1px solid #e3e3e5; border-radius: 0.6rem; box-shadow: none; }

.tab-btn {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #6d6d72;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.tab-btn.active { color: #2a6370; border-bottom-color: #2a6370; }

input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="number"],
select, textarea {
  width: 100%;
  border: 1px solid #c9c9cc;
  border-radius: 0.4rem;
  padding: 0.5rem 0.7rem;
  font-size: 0.88rem;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #357583; box-shadow: 0 0 0 3px rgba(53,117,131,0.14); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  border: none;
}
.btn:hover { opacity: 0.9; }
.btn-primary { background-color: #2a6370; color: #fff; }
.btn-secondary { background-color: #efeff0; color: #424246; }
.btn-danger { background-color: #91181f; color: #fff; }
.btn-accent { background-color: #c8222b; color: #fff; }
.btn-outline { background: #fff; border: 1px solid #c9c9cc; color: #424246; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(35, 35, 39, 0.5);
  display: flex; align-items: center; justify-content: center; z-index: 50; padding: 1rem;
}
.modal-box { background: #fff; border: 1px solid #e3e3e5; border-radius: 0.6rem; max-width: 640px; width: 100%; max-height: 90vh; overflow-y: auto; }

.toast {
  position: fixed; top: 1rem; right: 1rem; z-index: 100;
  padding: 0.75rem 1.25rem; border-radius: 0.4rem; color: #fff; font-size: 0.88rem; font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  animation: slideIn 0.2s ease-out;
}
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

table.data-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
table.data-table th { text-align: left; padding: 0.6rem 0.9rem; background: #f7f7f8; color: #6d6d72; font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; border-bottom: 1px solid #e3e3e5; }
table.data-table td { padding: 0.65rem 0.9rem; border-bottom: 1px solid #efeff0; }
table.data-table tr:hover td { background: #f7f7f8; }

.skeleton { background: linear-gradient(90deg, #efeff0 25%, #e3e3e5 50%, #efeff0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 0.4rem; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.prose-report { color: #424246; font-size: 0.92rem; line-height: 1.6; }
.prose-report h2:first-child { margin-top: 0; }
#report-content-editor { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; }

/* ---------- Homepage / Landing ---------- */
.home-nav { backdrop-filter: blur(8px); }
.home-hero { background: #f7f7f8; }
.home-feature-card { background: #fff; border: 1px solid #e3e3e5; border-radius: 0.6rem; transition: border-color 0.15s; }
.home-feature-card:hover { border-color: #357583; }
.home-mock-browser { background: #fff; border-radius: 0.6rem; box-shadow: none; overflow: hidden; border: 1px solid #e3e3e5; }
.home-mock-topbar { background: #f7f7f8; padding: 0.55rem 0.9rem; display: flex; align-items: center; gap: 0.4rem; border-bottom: 1px solid #e3e3e5; }
.home-mock-dot { width: 0.55rem; height: 0.55rem; border-radius: 9999px; background: #c9c9cc; }
.home-stat-pill { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18); border-radius: 0.5rem; }
.home-gradient-text { color: #2a6370; }
