/* ═══════════════════════════════════════════════════════════════════
   SCAN RESULTS STYLING - Dark theme
   ═══════════════════════════════════════════════════════════════════ */

.scan-results {
  margin-top: 1.5rem;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  animation: resultsSlideIn 0.5s ease-out;
}

@keyframes resultsSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(11, 28, 45, 0.1);
}

.results-header h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #10b981;
  font-size: 1.25rem;
  margin: 0;
}

.results-header i {
  color: #10b981;
}

.scan-type-badge {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(59, 130, 246, 0.2));
  border: 1px solid rgba(37, 99, 235, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #3b82f6;
  text-transform: capitalize;
}

/* Results Summary */
.results-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.summary-item {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.summary-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.summary-item.critical {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.05);
}

.summary-item.high {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.05);
}

.summary-item.medium {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.05);
}

.summary-item.low {
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.05);
}

.summary-count {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.summary-item.critical .summary-count {
  color: #ef4444;
}

.summary-item.high .summary-count {
  color: #f59e0b;
}

.summary-item.medium .summary-count {
  color: #fbbf24;
}

.summary-item.low .summary-count {
  color: #3b82f6;
}

.summary-label {
  font-size: 0.875rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Results Details */
.results-details {
  margin-bottom: 1.5rem;
}

.results-details h4 {
  color: #e2e8f0;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.vulnerabilities-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vulnerability-item {
  background: rgba(30, 41, 59, 0.5);
  border-left: 3px solid;
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.3s ease;
}

.vulnerability-item:hover {
  background: rgba(30, 41, 59, 0.7);
  transform: translateX(4px);
}

.vulnerability-item.critical {
  border-left-color: #ef4444;
}

.vulnerability-item.high {
  border-left-color: #f59e0b;
}

.vulnerability-item.medium {
  border-left-color: #fbbf24;
}

.vulnerability-item.low {
  border-left-color: #3b82f6;
}

.vuln-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.vuln-severity {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.vulnerability-item.critical .vuln-severity {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.vulnerability-item.high .vuln-severity {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.vulnerability-item.medium .vuln-severity {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.vulnerability-item.low .vuln-severity {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.vuln-title {
  color: #e2e8f0;
  font-weight: 600;
  flex: 1;
}

.vuln-description {
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.vuln-port {
  color: #64748b;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
}

.no-vulnerabilities {
  text-align: center;
  padding: 3rem 1rem;
  color: #10b981;
}

.no-vulnerabilities i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.no-vulnerabilities p {
  font-size: 1.125rem;
  margin: 0;
}

.more-results {
  text-align: center;
  padding: 1rem;
  color: #64748b;
  font-size: 0.875rem;
  font-style: italic;
}

/* Results Actions */
.results-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.results-actions .btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .results-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .results-actions {
    flex-direction: column;
  }

  .results-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .results-summary {
    grid-template-columns: 1fr;
  }

  .results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
