:root {
  --navy: #0F172A;
  --navy-med: #1E293B;
  --cyan: #0EA5E9;
  --cyan-light: #7DD3FC;
  --green: #10B981;
  --orange: #F59E0B;
  --red: #EF4444;
  --bg: #F8FAFC;
  --bg-card: #FFFFFF;
  --border: #E2E8F0;
  --text: #334155;
  --text-light: #94A3B8;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* Navigation */
nav {
  background: var(--navy);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 56px;
}
nav .logo {
  color: var(--cyan);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
}
nav a {
  color: var(--cyan-light);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
nav a:hover, nav a.active {
  border-color: var(--cyan);
  color: #fff;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}
h1 {
  color: var(--navy);
  font-size: 24px;
  margin-bottom: 20px;
}
h2 {
  color: var(--navy-med);
  font-size: 18px;
  margin-bottom: 16px;
}

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.card-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
}

/* Status badges */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 12px;
}
.status-up { background: #D1FAE5; color: #065F46; }
.status-down { background: #FEE2E2; color: #991B1B; }
.status-degraded { background: #FEF3C7; color: #92400E; }
.status-unknown { background: #F1F5F9; color: #64748B; }
.status-pending { background: #DBEAFE; color: #1E40AF; }
.status-processing { background: #FEF3C7; color: #92400E; }
.status-completed { background: #D1FAE5; color: #065F46; }
.status-failed { background: #FEE2E2; color: #991B1B; }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot-up { background: var(--green); }
.dot-down { background: var(--red); }
.dot-degraded { background: var(--orange); }
.dot-unknown { background: var(--text-light); }

/* Priority badges */
.priority-urgent { color: var(--red); font-weight: 600; }
.priority-normal { color: var(--cyan); }
.priority-batch { color: var(--text-light); }

/* Stats */
.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
}
.stat-label {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}
.stat-detail {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 8px;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
}
td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #F8FAFC; }

/* Forms */
.form-group {
  margin-bottom: 16px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy-med);
  margin-bottom: 6px;
}
input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.85; }
.btn-primary { background: var(--cyan); color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-secondary { background: var(--border); color: var(--navy-med); }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* Utility */
.flex { display: flex; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.text-sm { font-size: 13px; }
.text-light { color: var(--text-light); }
.mono { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 13px; }

/* Actions bar */
.actions {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* Filter tabs */
.filters {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  display: inline-flex;
}
.filter-btn {
  padding: 6px 14px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-light);
  text-decoration: none;
}
.filter-btn:hover { background: var(--bg); color: var(--text); }
.filter-btn.active { background: var(--cyan); color: #fff; }

/* Responsive */
@media (max-width: 768px) {
  .grid { grid-template-columns: 1fr; }
  nav { padding: 0 16px; gap: 16px; }
  .container { padding: 16px; }
}
