/* IntelliVault Dark Theme Styles */

:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --accent-primary: #8b5cf6;
  --accent-secondary: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
}

body {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  min-height: 100vh;
}

.dark-card {
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 12px;
}

.dark-card:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

.gradient-border {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.1));
  border: 1px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.gradient-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  margin: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
}

.risk-meter {
  width: 100px;
  height: 100px;
  position: relative;
  margin: 0 auto;
}

.risk-meter-bg {
  stroke: #374151;
  stroke-width: 8;
  fill: none;
}

.risk-meter-fill {
  stroke-width: 8;
  fill: none;
  stroke-linecap: round;
  transition: stroke-dasharray 1s ease-in-out;
}

.risk-low { 
  stroke: #10b981; 
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.3));
}
.risk-medium { 
  stroke: #f59e0b; 
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.3));
}
.risk-high { 
  stroke: #ef4444; 
  filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.3));
}

.investigation-card {
  transition: all 0.3s ease;
  cursor: pointer;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(51, 65, 85, 0.3);
  border-radius: 12px;
}

.investigation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(30, 41, 59, 0.8);
}

.evidence-item {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease;
  background: rgba(51, 65, 85, 0.3);
  border: 1px solid rgba(71, 85, 105, 0.3);
}

.evidence-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
}

.pulse-animation {
  animation: pulse 2s infinite;
}

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

.loading-spinner {
  border: 4px solid rgba(51, 65, 85, 0.3);
  border-top: 4px solid #8b5cf6;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.confidence-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid;
}

.confidence-high {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}

.confidence-medium {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
}

.confidence-low {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.gradient-bg {
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
}

.glass-effect {
  backdrop-filter: blur(20px);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.admin-panel {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 16px;
}

.api-key-input {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(71, 85, 105, 0.5);
  color: #f1f5f9;
  border-radius: 8px;
  padding: 12px 16px;
  transition: all 0.3s ease;
}

.api-key-input:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

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

.status-active { background: #10b981; }
.status-inactive { background: #6b7280; }
.status-error { background: #ef4444; }
.status-warning { background: #f59e0b; }

.glow-effect {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* Dark scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1e293b;
}

::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Dark theme form elements */
input, select, textarea {
  background: rgba(30, 41, 59, 0.8) !important;
  border: 1px solid rgba(71, 85, 105, 0.5) !important;
  color: #f1f5f9 !important;
  border-radius: 8px !important;
}

input:focus, select:focus, textarea:focus {
  border-color: #8b5cf6 !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1) !important;
}

/* Dark theme buttons */
.btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  border: none;
  color: white;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
  background: rgba(51, 65, 85, 0.6);
  border: 1px solid rgba(71, 85, 105, 0.5);
  color: #cbd5e1;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(51, 65, 85, 0.8);
  border-color: rgba(139, 92, 246, 0.5);
  color: white;
}