/* VulNova Purple Theme */
:root {
  /* Primary Purple Colors */
  --primary-50: #f5f3ff;
  --primary-100: #ede9fe;
  --primary-200: #ddd6fe;
  --primary-300: #c4b5fd;
  --primary-400: #a78bfa;
  --primary-500: #8b5cf6;
  --primary-600: #7c3aed;
  --primary-700: #6d28d9;
  --primary-800: #5b21b6;
  --primary-900: #4c1d95;
  
  /* Indigo Accent */
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;
  
  /* Status Colors */
  --critical-color: #ef4444;
  --high-color: #f97316;
  --medium-color: #f59e0b;
  --low-color: #10b981;
  
  /* Neutral Colors */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

/* Global Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--gray-50);
  color: var(--gray-900);
}

/* Logo Gradient */
.logo-gradient {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--indigo-600) 100%);
}

/* Card Styles */
.card-purple-light {
  background-color: var(--primary-50);
  border: 1px solid var(--primary-100);
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Button Styles */
.btn-primary {
  background-color: var(--primary-600);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-primary:hover {
  background-color: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: white;
  color: var(--primary-600);
  border: 2px solid var(--primary-600);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background-color: var(--primary-50);
}

/* Badge Styles */
.badge-critical {
  background-color: #fef2f2;
  color: var(--critical-color);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-high {
  background-color: #fff7ed;
  color: var(--high-color);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-medium {
  background-color: #fffbeb;
  color: var(--medium-color);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-low {
  background-color: #f0fdf4;
  color: var(--low-color);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Alert/Banner Styles */
.alert-critical {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.2);
}

.alert-icon {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 0.75rem;
  border-radius: 0.5rem;
}

/* Stats Card */
.stats-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.stats-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.stats-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--gray-900);
}

.stats-label {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Icon Backgrounds */
.icon-purple {
  background-color: var(--primary-100);
  color: var(--primary-600);
  padding: 0.75rem;
  border-radius: 0.75rem;
}

.icon-red {
  background-color: #fef2f2;
  color: var(--critical-color);
  padding: 0.75rem;
  border-radius: 0.75rem;
}

.icon-orange {
  background-color: #fff7ed;
  color: var(--high-color);
  padding: 0.75rem;
  border-radius: 0.75rem;
}

.icon-yellow {
  background-color: #fef9c3;
  color: #eab308;
  padding: 0.75rem;
  border-radius: 0.75rem;
}

/* AI Summary Box */
.ai-summary {
  background: linear-gradient(135deg, var(--primary-50) 0%, #ede9fe 100%);
  border: 1px solid var(--primary-200);
  border-radius: 1rem;
  padding: 1.5rem;
}

.ai-icon {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--indigo-600) 100%);
  color: white;
  padding: 0.75rem;
  border-radius: 0.75rem;
}

/* Sidebar Styles */
#sidebar {
  background: white;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.sidebar-link.active {
  background: var(--primary-50);
  color: var(--primary-700);
  font-weight: 600;
}

.sidebar-link:hover {
  background: var(--primary-50);
  color: var(--primary-700);
}

/* Table Styles */
.table-header {
  background-color: var(--gray-50);
  color: var(--gray-700);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.table-row:hover {
  background-color: var(--gray-50);
}

/* Progress Bar */
.progress-bar {
  background-color: var(--gray-200);
  height: 0.5rem;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  background: linear-gradient(90deg, var(--primary-600) 0%, var(--indigo-600) 100%);
  height: 100%;
  transition: width 0.3s ease;
}

/* Tooltip */
.tooltip {
  position: relative;
}

.tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--gray-900);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  white-space: nowrap;
  margin-bottom: 0.5rem;
  z-index: 50;
}

/* Risk Score Indicator */
.risk-score {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 1.5rem;
}

.risk-critical {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
}

.risk-high {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
}

.risk-medium {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.risk-low {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Loading Spinner */
.spinner {
  border: 3px solid var(--primary-200);
  border-top-color: var(--primary-600);
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .stats-number {
    font-size: 1.875rem;
  }
  
  .stats-card {
    padding: 1rem;
  }
  
  .ai-summary {
    padding: 1rem;
  }
}

/* Table Styling */
.table-header {
  background-color: var(--primary-50);
  color: var(--primary-800);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

table tbody tr {
  transition: background-color 0.2s ease;
}

table tbody tr:hover {
  background-color: var(--primary-50);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--primary-50);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-300);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-500);
}

/* Focus States */
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--indigo-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
