@tailwind base;
@tailwind components;
@tailwind utilities;
@import "react-toastify/dist/ReactToastify.css";
@import "react-datepicker/dist/react-datepicker.css";

:root {
  font-family: Inter, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color-scheme: light dark;
  background-color: white;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  text-decoration: inherit;
}

body {
  margin: 0;
  @apply font-sans;
  min-width: 320px;
  min-height: 100vh;
}

h1 {
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.25s;
}

input {
  color: #696565;
}

.break-word {
  white-space: pre-wrap;
  word-wrap: break-word;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }

  a:hover {
    color: navy;
  }
}

.loader {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: inline-block;
  border-top: 4px solid #fff;
  border-right: 4px solid transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

.loader::after {
  content: "";
  box-sizing: border-box;
  position: absolute;
  left: 0;
  top: 0;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border-left: 4px solid #ff3d00;
  border-bottom: 4px solid transparent;
  animation: rotation 0.5s linear infinite reverse;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loader2 {
  width: 50px;
  aspect-ratio: 1;
  display: grid;
  -webkit-mask: conic-gradient(from 15deg, #0000, #000);
  animation: l26 1s infinite steps(12);
}

.loader2,
.loader2:before,
.loader2:after {
  background: radial-gradient(closest-side at 50% 12.5%, #f8cb1f 96%, #0000) 50%
      0/20% 80% repeat-y,
    radial-gradient(closest-side at 12.5% 50%, #ffe7af 96%, #0000) 0 50%/80% 20%
      repeat-x;
}

.loader2:before,
.loader2:after {
  content: "";
  grid-area: 1/1;
  transform: rotate(30deg);
}

.loader2:after {
  transform: rotate(60deg);
}

@keyframes l26 {
  100% {
    transform: rotate(1turn);
  }
}

.chat-container {
  overflow-y: auto;
  scrollbar-width: none;
}

.chat-container::-webkit-scrollbar {
  display: none;
}

.outgoing-bids {
  overflow-y: auto;
  scrollbar-width: none;
}

.outgoing-bids::-webkit-scrollbar {
  display: none;
}

.override-width {
  width: auto !important;
}

@layer components {
  .animation-custom-button {
    @apply bg-navy py-2 px-4 rounded-md relative flex items-center justify-center overflow-hidden font-medium text-white shadow-sm border border-gray-800 hover:bg-white hover:text-black hover:border-gray-300;
  }

  .track-custom-button {
    @apply bg-navy py-2 px-4 rounded-md relative flex items-center justify-center overflow-hidden font-medium text-white shadow-sm border border-gray-800 hover:bg-white hover:text-black hover:border-gray-300;
  }

  .track-custom-button-sm {
    @apply bg-navy py-1 px-2 rounded-md relative flex text-xs  items-center justify-center overflow-hidden font-medium text-white shadow-sm border border-gray-800 
    hover:bg-white hover:text-black hover:border-gray-300;
  }

  .custom-button {
    @apply bg-[#F8CB1F] py-2 px-6 rounded-md relative flex h-[40px] items-center justify-center overflow-hidden font-medium text-white shadow-sm border border-gray-200 hover:bg-white hover:text-black hover:border-gray-300;
  }

  .custom-button-sm {
    @apply bg-[#F8CB1F] py-4 px-4 rounded-md relative text-sm flex items-center justify-center overflow-hidden font-medium text-black shadow-sm border border-gray-200 h-9 hover:bg-white hover:text-black hover:border-gray-300;
  }

  .custom-button-price {
    @apply relative flex px-1 py-2 w-[163px] items-center justify-center overflow-hidden bg-customYellow text-black shadow-2xl transition-all before:absolute before:h-0 before:w-0 before:rounded-full before:bg-yellow-600 before:duration-500 before:ease-out hover:shadow-yellow-600 hover:before:h-56 hover:before:w-56;
  }
}

.step + .step::before {
  @apply absolute top-[-4px] left-[-10%] w-full h-1 bg-gray-300;
  content: "";
  z-index: 0;
}

.step .item::before {
  @apply absolute w-8 h-8 top-[-32px] left-0 right-0 mx-auto rounded-full;
  content: "";
  box-sizing: border-box;
}

.step.ready .item::before {
  @apply bg-gray-300;
}

.step.wip .item::before {
  @apply bg-white border-4 border-red-400;
}

.step.done .item::before {
  @apply bg-red-400;
}

.swal-title-custom {
  color: #dc2626 !important;
  font-weight: 600;
  font-size: 20px;
}

.swal-confirm-button {
  color: white;
  background-color: navy;
}

.slick-prev:before,
.slick-next:before {
  font-size: 0px !important;
}
