:root {
  /* Color Palette */
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --secondary: #10B981;
  --secondary-hover: #059669;
  --background: #F8FAFC;
  --surface: #FFFFFF;
  --surface-light: #E2E8F0;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --danger: #EF4444;
  --warning: #F59E0B;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(0, 0, 0, 0.05);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
  
  /* Typography */
  --font-sans: 'Montserrat', system-ui, -apple-system, sans-serif;
  
  /* Transitions */
  --transition: all 0.3s ease;
}

body {
  font-family: var(--font-sans);
}

h1 {
  font-size: 2.5rem;
  background: linear-gradient(135deg, #4F46E5, #9333EA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

/* Toast/Alerts */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  background: var(--surface);
  border-left: 4px solid var(--primary);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.3s ease-out;
  color: var(--text-main);
  font-weight: 500;
  z-index: 99999;
}

.toast.error {
  border-left-color: var(--danger);
}

.toast.success {
  border-left-color: var(--secondary);
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Heatmap & Enterprise UI */
.heatmap-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.heatmap-cell {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background-color: var(--surface-light);
}
.heatmap-cell[data-level="1"] { background-color: #9be9a8; }
.heatmap-cell[data-level="2"] { background-color: #40c463; }
.heatmap-cell[data-level="3"] { background-color: #30a14e; }
.heatmap-cell[data-level="4"] { background-color: #216e39; }

.prediction-bar {
  display: flex;
  height: 20px;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px;
}
.prediction-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
}
