/* ============================================================
   FactoryBios.com - Custom Styles
   ============================================================ */

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* --- Mesh Gradient Background --- */
.mesh-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 70%, rgba(14, 165, 233, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(16, 185, 129, 0.04) 0%, transparent 60%);
}

/* --- Loader Spinner --- */
.loader-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.06);
  border-top: 3px solid #6366f1;
  border-right: 3px solid #0ea5e9;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Float Animations --- */
@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-20px) scale(1.02); }
}
@keyframes floatDelayed {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-15px) scale(1.01); }
}

.animate-float { animation: float 8s ease-in-out infinite; }
.animate-float-delayed { animation: floatDelayed 10s ease-in-out infinite 2s; }

/* --- Fade / Slide Animations --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); max-height: 0; }
  to { opacity: 1; transform: translateY(0); max-height: 1000px; }
}

.animate-fade-in { animation: fadeIn 0.6s ease-out both; }
.animate-fade-in-up { animation: fadeInUp 0.6s ease-out both; }
.animate-slide-down { animation: slideDown 0.4s ease-out both; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* --- Scroll animation trigger --- */
.feature-card, .brand-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.feature-card.animate-visible, .brand-card.animate-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Card hover effects --- */
.stat-card {
  transition: all 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.1);
}

/* --- File drop zone active state --- */
.file-drop-zone div.drag-over {
  border-color: rgba(99, 102, 241, 0.5) !important;
  background: rgba(99, 102, 241, 0.05) !important;
}

/* --- Form elements for dark select dropdowns --- */
select option {
  background: #1e293b;
  color: #e2e8f0;
}

/* --- Table row transitions --- */
tr {
  transition: background-color 0.15s ease;
}

/* --- Link focus styles --- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.5);
  outline-offset: 2px;
}

/* --- Mobile optimizations --- */
@media (max-width: 640px) {
  .stat-card {
    padding: 1rem;
  }
  .stat-card p:first-of-type {
    font-size: 1.25rem;
  }
}

/* --- Print styles --- */
@media print {
  nav, #globalLoader, #toastContainer, #lightboxModal, button { display: none !important; }
  body { background: white !important; color: black !important; }
}
