* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0a0a0a;
  color: #e6edf3;
  min-height: 100vh;
}
.container { max-width: 900px; 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: 2rem; }
section { background: rgba(255,255,255,0.05); border-radius: 12px; padding: 1.5rem; }
h2 { font-size: 1.25rem; margin-bottom: 1rem; color: #fff; }

.input-section { display: flex; flex-direction: column; gap: 1rem; }
textarea {
  width: 100%; height: 250px; padding: 1rem; border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1); background: #161b22; color: #e6edf3;
  font-family: 'Monaco', 'Menlo', monospace; font-size: 0.875rem; resize: vertical;
}

.btn-primary {
  padding: 0.75rem 2rem; border-radius: 6px; border: none; cursor: pointer;
  font-size: 1rem; font-weight: 600; background: #58a6ff; color: #fff;
  transition: background 0.2s; align-self: flex-start;
}
.btn-primary:hover { background: #388bfd; }

.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: rgba(255,255,255,0.05); border-radius: 8px; padding: 1rem; text-align: center; }
.stat-value { font-size: 1.75rem; font-weight: bold; }
.stat-value.critical { color: #f44336; }
.stat-value.high { color: #ff9800; }
.stat-value.medium { color: #f59e0b; }
.stat-value.low { color: #22c55e; }
.stat-label { font-size: 0.875rem; color: #8b949e; margin-top: 0.25rem; }

.issues-list { display: grid; gap: 0.75rem; }
.issue-item {
  padding: 1rem; background: rgba(255,255,255,0.05); border-radius: 8px;
  border-left: 4px solid #8b949e;
}
.issue-item.critical { border-left-color: #f44336; background: rgba(244,67,54,0.1); }
.issue-item.high { border-left-color: #ff9800; background: rgba(255,152,0,0.1); }
.issue-item.medium { border-left-color: #f59e0b; background: rgba(245,158,11,0.1); }
.issue-item.low { border-left-color: #22c55e; background: rgba(34,197,94,0.1); }
.issue-title { font-weight: 600; margin-bottom: 0.25rem; }
.issue-desc { font-size: 0.875rem; color: #8b949e; }
.issue-line { margin-top: 0.25rem; padding: 0.5rem; background: rgba(0,0,0,0.2); border-radius: 4px; font-family: monospace; font-size: 0.75rem; }

/* 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;
}