@tailwind base;
@tailwind components;
@tailwind utilities;

@layer utilities {
  .bg-darkBlue {
    background-color: #002D4B;
  }
  .bg-darkerBlue {
    background-color: #001E31;
  }
  .text-darkBlue {
    color: #002D4B;
  }
  .text-darkerBlue {
    color: #001E31;
  }
  .text-blue {
    color: #00AFDD;
  }
  .border-blue {
    border-color: #00AFDD;
  }
  .text-title {
    font-size: 50px;
    line-height: 60px;
  }
  .text-base {
    font-size: 20px;
    line-height: 30px;
  }
  .custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }
  .custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(0, 175, 221, 0.6);
    border-radius: 10px;
  }
  .custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 175, 221, 0.9);
  }
  .custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 30, 49, 0.3);
    border-radius: 10px;
  }
  .no-scrollbar::-webkit-scrollbar {
    display: none;
    width: 0px;
  }
}

html,
body,
#root {
  background-color: #002D4B;
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Subtle modern scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 30, 49, 0.5);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 175, 221, 0.4);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 175, 221, 0.8);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 175, 221, 0.4) rgba(0, 30, 49, 0.5);
}

@keyframes pageSlide {
  0% {
    opacity: 0.4;
    transform: translateX(16px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-page-slide {
  animation: pageSlide 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  background-color: #002D4B;
  will-change: transform, opacity;
}

body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
}
