/* ============================================================================
   PROSES MIXING - COSMETIC MANUFACTURING PROCESS MONITORING SYSTEM
   Custom Styles, Glassmorphism & Industrial Control Room Animations
   ============================================================================ */

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

:root {
  --navy-950: #050a15;
  --navy-900: #0a1224;
  --navy-850: #0f1a33;
  --navy-800: #152242;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--navy-950);
  color: #f1f5f9;
  overflow-x: hidden;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}
::-webkit-scrollbar-thumb {
  background: rgba(71, 85, 105, 0.7);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.8);
}

/* Glassmorphism Control Room Cards */
.glass-panel-dark {
  background: linear-gradient(145deg, rgba(15, 26, 51, 0.85), rgba(10, 18, 36, 0.92));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.65);
}

.mixer-card {
  background: linear-gradient(165deg, rgba(17, 29, 56, 0.9), rgba(9, 16, 32, 0.96));
  backdrop-filter: blur(12px);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.mixer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px -12px rgba(14, 165, 233, 0.25);
}

/* Light Theme Operational Forms & Tables */
.light-workspace-card {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 32px -8px rgba(2, 6, 23, 0.25);
}

/* ============================================================================
   INDUSTRIAL MACHINE ANIMATIONS (GPU Accelerated)
   ============================================================================ */

/* 1. Impeller Rotation (Mixing / Heating / Cooling) */
@keyframes impellerSpin {
  0% { transform: scaleX(1); }
  50% { transform: scaleX(0.15); }
  100% { transform: scaleX(1); }
}

.mixer-impeller-spin {
  animation: impellerSpin 0.65s ease-in-out infinite;
}

/* 2. Heating Thermal Wave */
@keyframes heatRise {
  0% { transform: translateY(4px); opacity: 0.2; }
  50% { transform: translateY(-4px); opacity: 1; }
  100% { transform: translateY(-10px); opacity: 0; }
}

.heat-wave {
  animation: heatRise 1.4s ease-in-out infinite;
}

/* 3. Cooling Cold Bubbles */
@keyframes coolFloat {
  0%, 100% { transform: translateY(0) scale(0.9); opacity: 0.4; }
  50% { transform: translateY(-6px) scale(1.25); opacity: 1; }
}

.cool-bubble {
  animation: coolFloat 2s ease-in-out infinite;
}

/* 4. QC Laser Scan Line */
@keyframes qcScan {
  0% { transform: translateY(-14px); opacity: 0.3; }
  50% { transform: translateY(24px); opacity: 1; }
  100% { transform: translateY(-14px); opacity: 0.3; }
}

.qc-scan-line {
  animation: qcScan 2.2s ease-in-out infinite;
}

/* 5. Transfer Liquid Flow in Pipe */
@keyframes pipeFlow {
  0% { stroke-dashoffset: 20; }
  100% { stroke-dashoffset: 0; }
}

.pipe-flow {
  animation: pipeFlow 0.8s linear infinite;
}

/* 6. Cleaning CIP Spray */
@keyframes cipSpray {
  0% { stroke-dashoffset: 12; opacity: 0.4; }
  50% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0.4; }
}

.cip-spray {
  animation: cipSpray 0.7s linear infinite;
}

/* Status Pulse Glow for Active Cards */
@keyframes borderPulseOrange {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.25); }
  50% { box-shadow: 0 0 20px 2px rgba(249, 115, 22, 0.35); }
}
.anim-heating { animation: borderPulseOrange 2.5s infinite; }

@keyframes borderPulsePurple {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.25); }
  50% { box-shadow: 0 0 20px 2px rgba(168, 85, 247, 0.35); }
}
.anim-qc { animation: borderPulsePurple 2.5s infinite; }

/* Print Styling for Reports */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .no-print, aside, header, #mobile-nav, #toast-container {
    display: none !important;
  }
  main {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }
  .light-workspace-card {
    box-shadow: none !important;
    border: none !important;
  }
  table {
    font-size: 10px !important;
    border-collapse: collapse !important;
  }
  th, td {
    border: 1px solid #cbd5e1 !important;
    padding: 4px 6px !important;
  }
}
