/* Industrial Equipment Catalog & Admin Styling */

:root {
  --primary-red: #D32F2F;
  --primary-red-dark: #B71C1C;
  --primary-red-light: #FFEBEE;
  --industrial-dark: #1E293B;
  --industrial-steel: #475569;
  --industrial-border: #E2E8F0;
  --industrial-bg-alt: #F8FAFC;
}

/* Custom Scrollbar for Technical Tables */
.table-scroll-container::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}
.table-scroll-container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
.table-scroll-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.table-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Blueprint Magnifier Glass */
.blueprint-container {
  position: relative;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

.magnifier-lens {
  position: absolute;
  width: 160px;
  height: 160px;
  border: 3px solid #D32F2F;
  border-radius: 50%;
  pointer-events: none;
  display: none;
  background-repeat: no-repeat;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(0, 0, 0, 0.2);
  z-index: 30;
  cursor: crosshair;
  background-color: #ffffff;
}

.blueprint-container:hover .magnifier-lens {
  display: block;
}

/* Carousel transitions */
.carousel-track {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar {
  display: none;
}

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

/* Header Red Stripe Pattern */
.bg-hsd-red {
  background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
}

.bg-pattern-grid {
  background-size: 24px 24px;
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

/* Active tab indicators */
.tab-active {
  border-color: #D32F2F !important;
  color: #D32F2F !important;
  font-weight: 600;
}

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

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

/* Hero Machine Carousel Animations */
.hero-carousel-img {
  transition: opacity 0.35s ease-in-out;
  will-change: opacity;
}
.hero-carousel-img.is-transitioning {
  opacity: 0;
  transform: none !important;
}

.hero-card-fade {
  transition: opacity 0.25s ease-in-out;
}
.hero-card-fade.is-transitioning {
  opacity: 0.6;
}

/* 3D Futuristic Map Animations */
@keyframes hudPingSlow {
  0% { transform: scale(1); opacity: 0.9; }
  50% { opacity: 0.5; }
  100% { transform: scale(2.8); opacity: 0; }
}
.hud-ping-slow {
  animation: hudPingSlow 2.8s cubic-bezier(0, 0, 0.2, 1) infinite;
  transform-origin: center;
}

@keyframes routeDashTravel {
  to { stroke-dashoffset: -72; }
}
.route-anim {
  animation: routeDashTravel 2.4s linear infinite;
}
