/* Additional global styles */

/* Focus styles for better accessibility */
*:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Better form element styling */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  opacity: 1;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: hsl(var(--muted));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: hsl(var(--muted-foreground) / 0.5);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--muted-foreground) / 0.7);
}

/* Animation utilities */
.animate-in {
  animation: animateIn 0.3s ease-in-out;
}

@keyframes animateIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Calculator button styles */
.calculator-btn {
  transition: all 0.1s ease;
}

.calculator-btn:active {
  transform: scale(0.95);
}

/* Print styles */
@media print {
  .no-print {
    display: none;
  }
}

/* Pattern Background */
.pattern-bg {
  background-image:
    linear-gradient(135deg, rgba(224, 80, 159, 0.95) 0%, rgba(236,72,153,0.92) 100%),
    url('/assets/math-pattern.svg');
  background-blend-mode: overlay;
  background-size: cover, 800px 500px;
  background-repeat: no-repeat, repeat;
  background-position: center, center;
  color: white;
}