:root {
  /* Deep Dark Professional Palette */
  --v1-primary: #020617;
  --v1-secondary: #94a3b8;
  --v1-accent: #38bdf8;
  --v1-bg: #020617;
  --v1-border: rgba(255, 255, 255, 0.08);
  --v1-surface: #0f172a;
  
  --v1-text: #f1f5f9;
  --v1-text-muted: #64748b;
  
  --hc-safety: #f43f5e;
  --hc-compliance: #a78bfa;
  --hc-workflow: #38bdf8;
  
  /* High-Intensity Dark Glass */
  --glass-bg: rgba(15, 23, 42, 0.4);
  --glass-bg-hover: rgba(30, 41, 59, 0.6);
  --glass-bg-dark: rgba(2, 6, 23, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-blur: blur(20px);
  --glass-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);

  /* Elite PMO Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);
  --motion-fast: 0.2s;
  --motion-medium: 0.4s;
  --motion-slow: 0.6s;

  /* Neon Glow Effects */
  --glow-red: 0 0 20px rgba(244, 63, 94, 0.3);
  --glow-accent: 0 0 20px rgba(56, 189, 248, 0.3);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  
  --font-main: "Inter", system-ui, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background-color: var(--v1-bg);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.08) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  color: var(--v1-text);
  overflow: hidden;
  height: 100vh;
}

/* Skeleton Loading Shimmer */
@keyframes shimmer {
  0% { background-position: -468px 0; }
  100% { background-position: 468px 0; }
}

.skeleton {
  background: #1e293b;
  background-image: linear-gradient(to right, #1e293b 0%, #334155 20%, #1e293b 40%, #1e293b 100%);
  background-repeat: no-repeat;
  background-size: 800px 104px;
  display: inline-block;
  position: relative;
  animation: shimmer 1.5s linear infinite;
  border-radius: 4px;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.subtle {
  color: var(--v1-text-muted);
  font-size: 0.875rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 12px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* AI Copilot Animations */
.loading-dots:after {
  content: ' .';
  animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
  0%, 20% { color: rgba(0,0,0,0); text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0); }
  40% { color: var(--v1-accent); text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0); }
  60% { text-shadow: .25em 0 0 var(--v1-accent), .5em 0 0 rgba(0,0,0,0); }
  80%, 100% { text-shadow: .25em 0 0 var(--v1-accent), .5em 0 0 var(--v1-accent); }
}

#ai-copilot-panel {
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.fab-copilot {
  position: fixed;
  right: 35px;
  bottom: 35px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #39FF14;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  transition: transform 0.2s, background-color 0.2s;
}

.fab-copilot:hover {
  transform: scale(1.05);
  background-color: #32e612;
}

.fab-copilot svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #020617;
  stroke-width: 2;
}

.fab-copilot.active {
  background-color: #32e612;
  transform: rotate(90deg) scale(1.1);
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: var(--glass-bg-dark);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--v1-accent);
  color: white;
  padding: 12px 24px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  animation: toastIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast.success { border-color: #22c55e; }
.toast.error { border-color: #f43f5e; }

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

.toast.fade-out {
  animation: toastOut 0.3s forwards;
}

@keyframes toastOut {
  to { transform: translateY(-20px); opacity: 0; }
}
