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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 28px;
  color: #f6821f;
  margin-bottom: 8px;
}

header p {
  color: #666;
  font-size: 14px;
}

section {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

section h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #333;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.input-group {
  margin-bottom: 15px;
}

.input-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  font-size: 14px;
  color: #555;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: monospace;
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: #f6821f;
}

button {
  background: #f6821f;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}

button:hover {
  background: #e0740f;
}

button.secondary {
  background: #6c757d;
  margin-left: 10px;
}

button.secondary:hover {
  background: #5a6268;
}

button.danger {
  background: #dc3545;
}

button.danger:hover {
  background: #c82333;
}

button.small {
  padding: 6px 12px;
  font-size: 12px;
}

.add-site-form {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
}

.add-site-form h3 {
  margin-bottom: 15px;
  font-size: 16px;
}

.form-buttons {
  margin-top: 15px;
}

.sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
}

.site-card {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 15px;
  transition: box-shadow 0.2s;
}

.site-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.site-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #f6821f;
}

.site-card .repo {
  font-size: 13px;
  color: #666;
  font-family: monospace;
  margin-bottom: 10px;
}

.site-card .actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.scan-progress {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

.scan-item {
  background: white;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 10px;
  border-left: 4px solid #f6821f;
}

.scan-item h4 {
  font-size: 14px;
  margin-bottom: 8px;
}

.scan-item .progress-bar {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin: 10px 0;
}

.scan-item .progress-bar-fill {
  height: 100%;
  background: #f6821f;
  transition: width 0.3s;
}

.scan-item .stats {
  font-size: 12px;
  color: #666;
  margin-top: 8px;
}

.loading,
.empty-state {
  text-align: center;
  color: #999;
  padding: 20px;
  font-style: italic;
}

.severity {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  margin-right: 5px;
}

.severity.critical {
  background: #dc3545;
  color: white;
}

.severity.high {
  background: #fd7e14;
  color: white;
}

.severity.medium {
  background: #ffc107;
  color: #333;
}

.severity.low {
  background: #28a745;
  color: white;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  background: #6c757d;
  color: white;
  border-radius: 3px;
  font-size: 11px;
  margin-left: 5px;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
  margin-bottom: 15px;
  color: #f6821f;
}

.modal-content h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 18px;
}

.summary {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.violations {
  margin-top: 20px;
}

.violation-item {
  background: #f9f9f9;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 10px;
  border-left: 3px solid #f6821f;
}

.violation-item pre {
  background: #fff;
  padding: 10px;
  border-radius: 4px;
  margin-top: 8px;
  font-size: 12px;
  overflow-x: auto;
  border: 1px solid #ddd;
}
