/* Credett Enterprise Global Shared Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

:root {
  --primary: rgb(109, 87, 227);
  --primary-hover: #5d44d6;
  --primary-light: #f3f1fd;
  --surface-dark: #0B0F17;
  --surface-card: #FFFFFF;
  --surface-bg: #F8FAFC;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --border-subtle: #E2E8F0;
  --accent-cyan: #06B6D4;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--surface-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom subtle scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Glassmorphism helpers */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-panel-dark {
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Micro animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.animate-fade-in {
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-pulse-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}

/* Floating Quick Navigation Dock */
#credett-demo-dock {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
  border-radius: 9999px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 95vw;
  overflow-x: auto;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #93c5fd;
  padding: 3px 8px;
  background: rgba(59, 130, 246, 0.25);
  border-radius: 9999px;
  margin-right: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.dock-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 9999px;
  transition: all 0.15s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dock-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.dock-link.active {
  color: #ffffff;
  background: rgb(109, 87, 227);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(109, 87, 227, 0.4);
}

/* Toast Container */
#credett-toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  left: 16px;
  max-width: 420px;
  margin: 0 auto;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

@media (min-width: 640px) {
  #credett-toast-container {
    left: auto;
    right: 24px;
    top: 24px;
    margin: 0;
  }
}

.credett-toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #0f172a;
  color: #ffffff;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.2s, transform 0.2s;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(40px) scale(0.95); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.credett-toast.toast-success { border-left: 4px solid #10b981; }
.credett-toast.toast-info { border-left: 4px solid #3b82f6; }
.credett-toast.toast-warning { border-left: 4px solid #f59e0b; }
.credett-toast.toast-error { border-left: 4px solid #ef4444; }
