/* Game Automation — custom styles (complement Tailwind CDN) */

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Loading spinner */
.spinner {
  animation: spin 1s linear infinite;
}

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

/* Toast notifications */
.toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 50;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(0);
}

.toast.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.5rem);
}

/* Scrollbar styling for dark theme */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #1f2937;
}

::-webkit-scrollbar-thumb {
  background: #4b5563;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6b7280;
}

/* Status dot pulse animation */
.status-dot-pulse {
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Card hover effect */
.game-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Table row hover */
.log-row:hover {
  background-color: rgba(55, 65, 81, 0.5);
}

/* Sidebar active item */
.sidebar-item.active {
  background-color: rgba(59, 130, 246, 0.15);
  border-left: 3px solid #3b82f6;
}

/* Toggle switch */
.toggle-switch {
  transition: background-color 0.2s ease;
}

.toggle-switch .toggle-knob {
  transition: transform 0.2s ease;
}
