@import "tailwindcss";

/* Global Styles */
body {
  font-family: 'Lato', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1, h2, h3, h4, h5 { font-family: 'Playfair Display', serif; }

.dancing-script { font-family: 'Dancing Script', serif; }

.glass-bg-color {
  backdrop-filter: blur(5px);
  background-color: rgba(17, 24, 39, 0.6);
}

.glass-bg-color2 {
  backdrop-filter: blur(5px);
  background-color: rgba(98, 101, 103, 0.7);
}

.glass-bg-color3 {
  backdrop-filter: blur(5px);
  background-color: rgba(44, 62, 80, 0.6);
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

/* WhatsApp Chat Bubble Effect */
.whatsapp-bubble {
  position: relative;
  padding: 10px;
  border-radius: 8px;
  max-width: 75%;
}

.whatsapp-bubble::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10px;
  width: 10px;
  height: 10px;
  background: inherit;
  border-radius: 50%;
}

/* Chat Background Pattern */
.bg-chat-pattern {
  background-image: url('https://www.transparenttextures.com/patterns/inspiration-geometry.png');
  background-size: cover;
  background-blend-mode: overlay;
}

/* Override Mapbox default popup styles */
/*mapbox*/
.mapboxgl-popup {
  z-index: 80 !important;
}

.mapboxgl-popup-content {
  background: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.mapboxgl-popup-tip {
  display: none !important;
}

/* Optional: Adjust the max-width of the popup */
.mapboxgl-popup-content-wrapper {
  max-width: none !important;
  width: auto !important;
}

/* Custom style for the Mapbox popup close button */
.mapboxgl-popup-close-button {
  width: 2.5em !important;
  height: 2.5em !important;
  padding: 0 !important;
  background: transparent !important;
  position: relative;
  outline: none;
  border-radius: 50% !important;
  margin-right: -4.5rem !important;
  margin-top: 0.4rem !important;
}

.mapboxgl-popup-close-button::before {
  content: "\2716";
  font-size: 1.8em !important;
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.mapboxgl-popup-close-button:hover {
  background: red !important;
}

.mapboxgl-control-container {
  z-index: 90!important;
  position: relative !important;
}

.mapboxgl-ctrl-top-right {
  top: unset !important;
  right: unset !important;
  top: 1rem !important;
  right: 13rem !important;
  position: absolute !important;
  z-index: 80 !important;
}

#drag-handle {
  user-select: none;
  pointer-events: auto;
}

.mapboxgl-canvas {
  pointer-events: auto;
}

/*Cog spin*/

/* Clockwise rotation for the big cog */
@keyframes spin-clockwise {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Counterclockwise rotation for the small cog */
@keyframes spin-counterclockwise {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

/* Big cog with 12 teeth */
.animate-cog1 {
  animation: spin-clockwise 12s linear infinite;
}

/* Small cog with 7 teeth */
.animate-cog2 {
  animation: spin-counterclockwise 7s linear infinite;
}

/*Document*/

.page {
  background-color: #f3f4f6;
  width: 70vw;
  min-height: 297mm;
  box-shadow: 0 0 0.5cm rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  border-radius: 2px;
}

.doc-page {
  visibility:hidden;
  position:absolute;
  top: 0;
}

.avoid-break {
  page-break-inside: avoid;
  break-inside: avoid;
}

/* For Webkit browsers (Chrome, Safari) */
.my-scrollable-div::-webkit-scrollbar {
  display: none; /* Hides the scrollbar */
  width: 0;      /* Optional: ensures no space is taken by vertical scrollbar */
  height: 0;     /* Optional: ensures no space is taken by horizontal scrollbar */
}

/* For Firefox */
.my-scrollable-div {
  scrollbar-width: none; /* Hides the scrollbar */
}

/* For Internet Explorer and Edge (legacy) */
.my-scrollable-div {
  -ms-overflow-style: none; /* Hides the scrollbar */
}

/* Ensure the div itself has overflow-x-auto or overflow: auto */
.my-scrollable-div {
  overflow-x: auto;
  /* Other styling for your div */
}
