@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom faster smooth scroll for chat messages */
@layer utilities {
  .scroll-fast {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
  }
}

/* Override default smooth scroll timing */
* {
  scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
}

/* Faster scroll animation using CSS */
@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
  
  /* Custom smooth scroll with faster timing */
  .overflow-y-auto {
    scroll-behavior: smooth;
  }
}

/* Custom Scrollbar Styles - Light Mode */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f3f4f6; /* Light mode track */
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #d1d5db; /* Light mode thumb */
  border-radius: 10px;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #9ca3af; /* Light mode thumb hover */
}

/* Custom Scrollbar Styles - Dark Mode */
.dark ::-webkit-scrollbar-track {
  background: #111827; /* Dark mode track */
}

.dark ::-webkit-scrollbar-thumb {
  background: #374151; /* Dark mode thumb */
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #4b5563; /* Dark mode thumb hover */
}

/* Firefox Scrollbar Styles - Light Mode */
* {
  scrollbar-width: thin;
  scrollbar-color: #d1d5db #f3f4f6; /* thumb track */
}

/* Firefox Scrollbar Styles - Dark Mode */
.dark * {
  scrollbar-color: #374151 #111827; /* thumb track */
}

select{
  appearance: none;
  background-image: url("data:image/svg+xml,%0A%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-chevron-down'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 10px) center;
}

.hero-wrapper{
  background-image: url('/hero-bg.jpg');
  background-position: center center;
  background-size: cover;
}

.pricing-bg{
  background-image: url('/pricing-bg.svg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.cta-bg{
  background-image: url('/cta.png');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.about-wrapper{
  background-image: url('/about-bg.png');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.login-bg{
  background-image: url('/login-bg-.png');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}