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

@import "flowbite";

html {
  scroll-behavior: smooth;
}

.carousel-container {
  position: relative;
  width: 100%;
  padding-top: 31.25%;
  overflow: hidden;
}

.carousel-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.animate-scroll {
  display: flex;
  animation: scroll 40s linear infinite;
  will-change: transform;
}

.whatsapp-icon {
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 999;
}

.whatsapp-icon img {
  width: 50px;
  height: 50px;
  cursor: pointer;
}

.custom-promo-bg {
  background-color: #213c78;
  background-image: linear-gradient(90deg, #213c78 0%, #209a99 100%);
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}


@media only screen and (max-width: 569px) {
  .whatsapp-icon {
    right: 20px;
  }
  
  @keyframes marquee {
    0% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(-100%);
    }
  }
  
  .animate-marquee {
    animation: marquee 10s linear infinite;
  }
}

.table-container {
  @apply bg-white rounded-lg shadow-md;
}

.table-header th {
  @apply bg-gray-100 text-gray-700;
}

.table-row:nth-child(even) {
  @apply bg-gray-50;
}

.day-checkbox-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.day-checkbox-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 40px;
}

.day-checkbox-item input {
  margin-bottom: 2px;
}

.day-checkbox-item label {
  font-size: 12px;
  text-align: center;
}

.turbo-frame {
  transition: opacity 0.3s ease;
}

@keyframes pulse {
  50% { transform: scale(1.1); }
}

button:active svg {
  animation: pulse 0.3s ease;
}

.flatpickr-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 16px;
}

.flatpickr-input:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%233b82f6' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3E%3C/svg%3E");
}
