/* Apply the 'Cairo' font to the entire application */
body {
    font-family: 'Cairo', sans-serif;
}

/*
  THIS IS THE CORRECTED RULE.
  It hides the scrollbar on the main content area during the intro.
*/
body.no-scroll .drawer-content {
    overflow: hidden;
}

/* --- Utility to Hide Scrollbars --- */
.hide-scrollbar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
.hide-scrollbar::-webkit-scrollbar {
  display: none;  /* Safari and Chrome */
}

/* --- CSS to Hide Default Number Input Arrows --- */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}

.placeholder {
  background-color: white;
  /* background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Crect width='100%25' height='100%25' fill='%23f0f0f0'/%3E%3Cg fill='none' stroke='%23cccccc' stroke-width='14' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M120 280l80-100 100 80z'/%3E%3Ccircle cx='250' cy='150' r='30'/%3E%3C/g%3E%3C/svg%3E")
              center/cover no-repeat; */
}

body.modal-open .drawer-content {
  filter: blur(4px) brightness(0.8);
  transition: filter 0.3s ease-out;
  pointer-events: none;
}

/* =========== STYLES FOR VIDEO OVERLAY =========== */
.video-overlay-hidden {
    opacity: 0;
    pointer-events: none; /* Make it unclickable after hiding */
    transition: opacity 0.5s ease-in-out;
}
/* =================================================== */

/* =========== LOGO INTRO ANIMATION =========== */
/* @keyframes fly-back {
    0%, 80% {
        top: 50%;
        right: 50%;
        transform: translate(50%, -50%);
        opacity: 1;
    }
    99% {
        top: 0.75rem;
        right: 0.5rem;
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        top: 0.75rem;
        right: 0.5rem;
        transform: translateX(0);
        opacity: 0;
    }
} */

/* @media (max-width: 1023px) { */
    @keyframes fly-back {
        0%, 80% {
            top: 50%;
            right: 50%;
            transform: translate(50%, -50%);
            opacity: 1;
        }
        99% {
            top: 0.75rem;
            right: 3.5rem;
            transform: translateX(0);
            opacity: 1;
        }
        100% {
            top: 0.75rem;
            right: 3.5rem;
            transform: translateX(0);
            opacity: 0;
        }
    }
/* } */

@keyframes shrink {
    0%, 80% {
        height: 28vh;
    }
    100% {
        height: 2.5rem; /* Equivalent to Tailwind's h-10 */
    }
}

@keyframes fade-in {
    0%, 99% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.animated-logo {
    animation: fly-back 5000ms ease-in-out forwards;
}

.animated-logo img {
    animation: shrink 5000ms ease-in-out forwards;
}

.placeholder-logo {
    animation: fade-in 5000ms forwards;
}
/* =================================================== */

@layer utilities {
  .hide-scrollbar::-webkit-scrollbar {
      display: none;
  }
  .hide-scrollbar {
      -ms-overflow-style: none;
      scrollbar-width: none;
  }
}

/* =========== PWA OFFLINE INDICATOR STYLES =========== */
.offline-indicator {
  display: none;
  background-color: #ff9800;
  color: white;
  text-align: center;
  z-index: 9999;
  font-weight: bold;
}

.offline .offline-indicator {
  display: block;
}

/* =========== PWA UPDATE NOTIFICATION STYLES =========== */
/* .pwa-update-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #4f46e5;
  color: white;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  max-width: 300px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.pwa-update-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.pwa-update-notification h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
}

.pwa-update-notification p {
  margin: 0 0 12px 0;
  font-size: 14px;
}

.pwa-update-notification button {
  background-color: white;
  color: #4f46e5;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  margin-right: 8px;
}

.pwa-update-notification button:hover {
  background-color: #f3f4f6;
}

.pwa-update-notification button.dismiss {
  background-color: transparent;
  color: white;
  text-decoration: underline;
} */