* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0d1117;
  color: #e6edf3;
  min-height: 100vh;
}
.container { max-width: 1200px; margin: 0 auto; padding: 2rem; }
header { margin-bottom: 2rem; }
header h1 { font-size: 2rem; color: #fff; }
.subtitle { color: #8b949e; margin-top: 0.5rem; }

main { display: grid; gap: 1.5rem; }

.stats-section {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem;
}
.stat-card {
  background: rgba(255,255,255,0.05); border-radius: 12px; padding: 1.5rem; text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
}
.stat-value { font-size: 2rem; font-weight: bold; color: #58a6ff; }
.stat-label { font-size: 0.875rem; color: #8b949e; margin-top: 0.25rem; }

.alerts-section, .events-section {
  background: rgba(255,255,255,0.05); border-radius: 12px; padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.1);
}
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.section-header h2 { font-size: 1.25rem; }

.btn-secondary {
  padding: 0.5rem 1rem; border-radius: 6px; border: 1px solid #8b949e;
  background: transparent; color: #8b949e; cursor: pointer;
}
.btn-secondary:hover { background: rgba(139,148,158,0.1); }

.alerts-list { display: grid; gap: 0.75rem; max-height: 300px; overflow-y: auto; }
.alert-item {
  padding: 1rem; background: rgba(255,255,255,0.05); border-radius: 8px;
  border-left: 4px solid #8b949e;
}
.alert-item.critical { border-left-color: #f44336; background: rgba(244,67,54,0.1); }
.alert-item.high { border-left-color: #ff9800; background: rgba(255,152,0,0.1); }
.alert-item.medium { border-left-color: #4fc3f7; background: rgba(79,195,247,0.1); }
.alert-item.low { border-left-color: #22c55e; background: rgba(34,197,94,0.1); }
.alert-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.alert-title { font-weight: 600; }
.alert-time { font-size: 0.75rem; color: #8b949e; }
.alert-description { font-size: 0.875rem; color: #8b949e; }

.events-table {
  overflow-x: auto;
  table { width: 100%; border-collapse: collapse; }
  th, td { padding: 0.75rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.1); }
  th { background: rgba(255,255,255,0.05); color: #8b949e; font-weight: 500; }
  tr:hover { background: rgba(255,255,255,0.02); }
}

/* KateelLearningDemos Attribution Marker */
body::after {
  content: "KateelLearningDemos";
  position: fixed;
  bottom: 5px;
  right: 5px;
  font-size: 8px;
  color: rgba(255,255,255,0.1);
  pointer-events: none;
  z-index: 9999;
}