body {
  font-family: 'Inter', sans-serif;
}

/* Custom Scrollbar for Light Theme */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f9fafb;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Telemetry Console Scrollbar (Dark for contrast) */
.console-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.console-scrollbar::-webkit-scrollbar-track {
  background: #111827;
}

.console-scrollbar::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 4px;
}

/* Toast Notification Animations */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.toast-enter {
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-exit {
  animation: fadeOut 0.3s forwards;
}

/* --- Advanced Scanner Animation --- */
@keyframes scan-line {
  0% {
    transform: translate(-50%, -30px);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translate(-50%, 30px);
    opacity: 0;
  }
}

.animate-scan-line {
  animation: scan-line 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Keep the dark theme intact when the browser autofills a saved
   email/password — otherwise Chrome/Edge force a light background +
   dark text into the input, which looks broken against the dark UI. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff;
  -webkit-box-shadow: 0 0 0px 1000px #020617 inset;
  box-shadow: 0 0 0px 1000px #020617 inset;
  caret-color: #ffffff;
  transition: background-color 5000s ease-in-out 0s;
}