@layer utilities {
  .animate-fadeIn {
    animation: fadeIn 0.2s ease-in-out;
  }

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

/* Animations */
@keyframes shimmer {
  100% {
    left: 100%;
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Improve focus styles for better accessibility */
:focus-visible {
  outline: 2px solid #f6a50e;
  outline-offset: 2px;
}

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* Improve button hover states */
button,
a {
  transition: all 0.2s ease-in-out;
}

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

::-webkit-scrollbar-track {
  background: #051a2d;
}

::-webkit-scrollbar-thumb {
  background: #0a3a5e;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #f6a50e;
}

/* Loading animation */
.loading-dots span {
  animation: loadingDots 1.4s infinite both;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes loadingDots {
  0%,
  80%,
  100% {
    opacity: 0;
    transform: scale(0);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 640px) {
  #CybotCookiebotDialog {
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    border-radius: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  #CybotCookiebotDialog,
  #CybotCookiebotDialogBody {
    font-size: 12px !important;
    line-height: 1.3 !important;
  }

  #CybotCookiebotDialogBodyContent {
    padding: 10px 12px !important;
  }

  #CybotCookiebotDialogBodyButtons {
    margin-top: 8px !important;
  }
}

/* Page transitions */
.page-transition-enter {
  opacity: 0;
}

.page-transition-enter-active {
  opacity: 1;
  transition: opacity 300ms;
}

.page-transition-exit {
  opacity: 1;
}

.page-transition-exit-active {
  opacity: 0;
  transition: opacity 300ms;
}

/* Hide Google Translate top bar and iframe */
.skiptranslate,
body > .skiptranslate,
body > .goog-te-banner-frame,
body > .goog-te-gadget {
  display: none !important;
  height: 0 !important;
  visibility: hidden !important;
}

body {
  top: 0px !important;
}

/* Hide Cybot Cookiebot "Powered by" link */
a#CybotCookiebotDialogPoweredbyCybot {
  display: none;
}
