/* Global UI improvements */
:root {
  color-scheme: light;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}
body {
  margin: 0;
  background-color: #f9fafb;
  color: #111827;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  opacity: 1;
  transition: opacity 0.35s ease;
}
body.page-ready {
  opacity: 1;
}
button,
input,
select,
textarea,
a {
  transition: all 0.2s ease-in-out;
}
button:active,
a:active {
  transform: scale(0.97);
}
button,
input,
select,
textarea {
  font: inherit;
}
* {
  box-sizing: border-box;
}
::selection {
  background: rgba(22, 163, 74, 0.16);
}
/* Custom scrollbar */
*::-webkit-scrollbar {
  width: 10px;
}
*::-webkit-scrollbar-track {
  background: #f3f4f6;
}
*::-webkit-scrollbar-thumb {
  background: #a3bffa;
  border-radius: 9999px;
}
*::-webkit-scrollbar-thumb:hover {
  background: #7c3aed;
}
@media (max-width: 768px) {
  *::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
  html {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
}
/* Safe area for mobile bottom nav */
body {
  padding-bottom: 3.5rem;
}
/* Shadow utilities for page sections */
.shadow-t {
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}
.toast-container {
  pointer-events: none;
  position: fixed;
  right: 1rem;
  bottom: 5.5rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
}
.toast-item {
  min-width: 16rem;
  max-width: 24rem;
  border-radius: 1.5rem;
  background: rgba(15, 23, 42, 0.94);
  color: #f8fafc;
  padding: 1rem 1.2rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
  font-size: 0.95rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(12px);
  animation: toast-in 0.35s ease forwards;
}
.toast-item[data-variant='success'] {
  background: rgba(22, 163, 74, 0.96);
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.whatsapp-widget {
  position: fixed;
  right: 1rem;
  bottom: 7.5rem;
  z-index: 55;
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 9999px;
  background: #25d366;
  color: white;
  box-shadow: 0 18px 46px rgba(37, 211, 102, 0.22);
  animation: pulse 1.8s ease-in-out infinite;
}
.whatsapp-widget:hover {
  transform: translateY(-2px);
}
.whatsapp-widget::after {
  content: 'Chat with us';
  position: absolute;
  right: 4.75rem;
  bottom: 50%;
  transform: translateY(50%);
  white-space: nowrap;
  background: rgba(15, 23, 42, 0.92);
  color: white;
  font-size: 0.75rem;
  padding: 0.55rem 0.85rem;
  border-radius: 9999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.whatsapp-widget:hover::after {
  opacity: 1;
}
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
img {
  object-fit: cover;
  border-radius: 1rem;
}
/* Loading skeleton shimmer */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton {
  animation: shimmer 1.4s ease infinite;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 37%, #f3f4f6 63%);
  background-size: 400% 100%;
}
