/* Pentesterr Security Agent — Admin Styles */

.pentesterr-wrap {
  max-width: 900px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header */
.pentesterr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 16px;
  border-bottom: 2px solid #0a0a1a;
  margin-bottom: 24px;
}

.pentesterr-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pentesterr-logo h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
}

.pentesterr-status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.pentesterr-status-badge.connected {
  background: #e8f5e9;
  color: #2e7d32;
}

.pentesterr-status-badge.disconnected {
  background: #fce4ec;
  color: #c62828;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.connected .status-dot  { background: #4caf50; }
.disconnected .status-dot { background: #f44336; }

/* Score Cards */
.pentesterr-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.pentesterr-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

.pentesterr-card.good    { border-top: 4px solid #4caf50; }
.pentesterr-card.warning { border-top: 4px solid #ff9800; }
.pentesterr-card.danger  { border-top: 4px solid #f44336; }

.card-value {
  font-size: 36px;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1;
  margin-bottom: 6px;
}

.card-label {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Actions */
.pentesterr-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.pentesterr-action-result {
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
}

.pentesterr-action-result.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.pentesterr-action-result.error {
  background: #fce4ec;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

.pentesterr-action-result.info {
  background: #e3f2fd;
  color: #1565c0;
  border: 1px solid #90caf9;
}

.pentesterr-next-run {
  font-size: 13px;
  color: #666;
  margin-bottom: 24px;
}

/* Settings */
.pentesterr-settings-section {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
}

.pentesterr-settings-section h2 {
  margin-top: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.pentesterr-form-table th {
  width: 180px;
  padding: 12px 0;
}

.pentesterr-api-key-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pentesterr-api-key-row input {
  flex: 1;
  font-family: monospace;
  font-size: 13px;
}

.pentesterr-verify-result {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
}

.pentesterr-verify-result.valid {
  background: #e8f5e9;
  color: #2e7d32;
}

.pentesterr-verify-result.invalid {
  background: #fce4ec;
  color: #c62828;
}

/* Notice */
.pentesterr-notice {
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.pentesterr-notice.info {
  background: #e3f2fd;
  border-left: 4px solid #1976d2;
}

.pentesterr-notice p { margin: 0 0 12px; }

/* Privacy notice */
.pentesterr-privacy-notice {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 13px;
  color: #555;
}

.pentesterr-privacy-notice h3 {
  margin-top: 0;
  font-size: 14px;
  color: #333;
}

.pentesterr-privacy-notice p { margin: 0 0 8px; }
.pentesterr-privacy-notice p:last-child { margin-bottom: 0; }

/* Responsive */
@media (max-width: 782px) {
  .pentesterr-cards { grid-template-columns: repeat(2, 1fr); }
  .pentesterr-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}
