/* Ewan Fane - VisionLab Custom Styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body {
  font-family: var(--font-sans);
  background-color: #090a0f;
  color: #f1f5f9;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0f1117;
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* Subtle checkerboard pattern for transparent or letterboxed canvas */
.canvas-checkerboard {
  background-color: #12131a;
  background-image: 
    linear-gradient(45deg, #181924 25%, transparent 25%), 
    linear-gradient(-45deg, #181924 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, #181924 75%), 
    linear-gradient(-45deg, transparent 75%, #181924 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
}

/* Rendering modes */
.render-crisp {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.render-smooth {
  image-rendering: auto;
}

/* Glassmorphism helpers */
.glass-panel {
  background: rgba(18, 20, 29, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-dropdown {
  background: rgba(22, 25, 37, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Glow effects */
.glow-accent {
  box-shadow: 0 0 20px -3px rgba(139, 92, 246, 0.25);
}

.glow-emerald {
  box-shadow: 0 0 20px -3px rgba(16, 185, 129, 0.25);
}

/* Card hover animation */
.image-card {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.image-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px -2px rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.4);
}

/* Bounding box animation on canvas */
.bbox-overlay {
  transition: all 0.2s ease;
}

.bbox-overlay:hover {
  background-color: rgba(139, 92, 246, 0.2) !important;
}

/* Skeleton loader */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, #181926 25%, #242638 50%, #181926 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

