html,
body {
  overflow-x: hidden;
}

body.bg-light {
  background-color: #ffe4e1;
}

a {
  color: #ff8c00;
}

a:hover {
  color: #e67300;
}

.site-header {
  z-index: 1040;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-primary {
  background-color: #ff8c00;
  border-color: #ff8c00;
  color: #000;
}

.btn-primary:hover {
  background-color: #e67300;
  border-color: #e67300;
  color: #000;
}

.nav-btn-missing,
.nav-btn-proud,
.nav-btn-map {
  background-color: #fff;
  border-width: 2px;
  box-shadow: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.nav-btn-missing {
  color: #dc3545;
  border-color: #dc3545;
}

.nav-btn-missing:hover,
.nav-btn-missing:focus,
.nav-btn-missing:active,
.btn-check:checked + .nav-btn-missing,
.btn-check:active + .nav-btn-missing {
  color: #fff;
  background-color: #dc3545;
  border-color: #dc3545;
}

.nav-btn-proud {
  color: #ff8c00;
  border-color: #ff8c00;
}

.nav-btn-proud.active,
.show > .nav-btn-proud.dropdown-toggle {
  color: #ff8c00;
  background-color: #fff;
  border-color: #ff8c00;
  --bs-btn-active-color: #ff8c00;
  --bs-btn-active-bg: #fff;
  --bs-btn-active-border-color: #ff8c00;
  --bs-btn-active-shadow: none;
}

.nav-btn-proud:hover,
.nav-btn-proud:focus,
.nav-btn-proud:active,
.btn-check:checked + .nav-btn-proud,
.btn-check:active + .nav-btn-proud {
  color: #fff;
  background-color: #ff8c00;
  border-color: #ff8c00;
}

.nav-btn-map {
  color: #198754;
  background-color: #fff;
  border-color: #198754;
}

.nav-btn-map.active,
.show > .nav-btn-map.dropdown-toggle {
  color: #198754;
  background-color: #fff;
  border-color: #198754;
}

.nav-btn-map:hover,
.nav-btn-map:focus,
.nav-btn-map:active,
.btn-check:checked + .nav-btn-map,
.btn-check:active + .nav-btn-map {
  color: #fff;
  background-color: #198754;
  border-color: #198754;
}

.btn-map {
  background-color: #198754;
  border-color: #198754;
  color: #fff;
}

.btn-map:hover,
.btn-map:focus,
.btn-map:active,
.btn-check:checked + .btn-map,
.btn-check:active + .btn-map {
  background-color: #157347;
  border-color: #146c43;
  color: #fff;
}

.global-loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

h1, h2, h3, h4, h5, h6, .btn {
  font-family: 'Mochiy Pop P One', sans-serif;
}

/* Paw print icon animation */
@keyframes pawFade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Paw icon used inside input fields */
.input-with-icon {
  position: relative;
}

.input-with-icon input {
  padding-left: 2rem;
}

.paw-icon {
  color: #ff8c00;
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
}

.input-with-icon input:focus + .paw-icon {
  opacity: 1;
  animation: pawFade 0.8s ease-in-out;
}
/* Login hero section */
.login-hero {
  background: linear-gradient(135deg, #fffaf0 0%, #e0ffff 100%);
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

.login-hero img {
  width: 150px;
  animation: kittyFloat 5s ease-in-out infinite;
}

@keyframes kittyFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

/* Login page styles */
.login-card {
  background-color: #fffaf0;
  border: 2px solid #ffb6c1;
  font-family: 'Mochiy Pop P One', sans-serif;
  border-radius: 0.75rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.login-button {
  background-color: #ff8c00;
  border-color: #ff8c00;
  color: #fff;
  font-family: 'Mochiy Pop P One', sans-serif;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-button:hover {
  background-color: #e67300;
  border-color: #e67300;
  color: #fff;
}

/* Activity location buttons */
.activity-location-buttons {
  position: absolute;
  top: auto;
  bottom: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 900;
}

.activity-location-btn {
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  padding: 0;
}

.activity-location-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 2px rgba(0,0,0,0.4);
}

/* Cat photo markers on the map */
.cat-photo-marker {
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 3px rgba(0,0,0,0.5);
}

.cat-photo-marker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Activity location markers on the map */
.activity-marker {
  border-radius: 50%;
  border: 3px solid #ff8c00;
  box-shadow: 0 0 3px rgba(0,0,0,0.5);
  background-color: #fff;
  overflow: hidden;
}

/* Navbar user icon */
.navbar .user-icon {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 0.5rem;
}

/* Mobile bottom navigation */
@media (max-width: 768px) {
  body {
    padding-bottom: 6rem;
  }
  .mobile-bottom-nav {
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
    overflow-x: hidden;
    transform: translateY(0);
    transition: transform 0.3s ease;
  }
  .mobile-bottom-nav .nav-link {
    color: #ff8c00;
    padding: 0;
  }
  .mobile-bottom-nav .nav-item {
    min-width: 0;
  }
  .mobile-bottom-nav .nav-link .nav-icon {
    width: clamp(3.2rem, 18vw, 4.2rem);
    height: clamp(3.2rem, 18vw, 4.2rem);
    background-color: #ffe4b5;
    border-radius: 50%;
    object-fit: cover;
  }
  .mobile-bottom-nav .nav-proud .nav-link {
    color: #ff8c00;
  }
  .mobile-bottom-nav .nav-map .nav-link {
    color: #ff69b4;
  }
  .mobile-bottom-nav .nav-camera .nav-link {
    color: #20b2aa;
  }
  .mobile-bottom-nav .nav-lost .nav-link {
    color: #1e90ff;
  }
  .mobile-bottom-nav .nav-profile .nav-link {
    color: #9370db;
  }
  .mobile-bottom-nav .nav-proud .nav-link .nav-icon,
  .mobile-bottom-nav .nav-map .nav-link .nav-icon,
  .mobile-bottom-nav .nav-camera .nav-link .nav-icon,
  .mobile-bottom-nav .nav-lost .nav-link .nav-icon,
  .mobile-bottom-nav .nav-profile .nav-link .nav-icon {
    background-color: transparent;
  }
  .mobile-bottom-nav .user-icon {
    width: clamp(3.2rem, 18vw, 4.2rem);
    height: clamp(3.2rem, 18vw, 4.2rem);
    object-fit: cover;
    border-radius: 50%;
  }
  .mobile-bottom-nav .dropup .dropdown-menu {
    margin-bottom: 0.5rem;
  }
  .offcanvas-top {
    --bs-offcanvas-height: calc(100vh - 6rem);
    height: var(--bs-offcanvas-height);
    max-height: 100vh;
    z-index: 1100;
  }
  .offcanvas-body {
    overflow-y: visible;
  }
}

#camera-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.global-loading-indicator .loading-container {
  position: relative;
  width: 170px;
  height: 170px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.global-loading-indicator .global-loading-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 10;
}

.global-loading-indicator .loading-spinner {
  position: absolute;
  width: 170px;
  height: 170px;
  top: 0;
  left: 0;
}

@keyframes flow-pulse {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  30% {
    transform: scale(1);
    opacity: 1;
  }
  70% {
    transform: scale(1.5);
    opacity: 0.3;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.global-loading-indicator .dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #ff8c00;
  border-radius: 50%;
  animation: flow-pulse 1.5s infinite ease-in-out;
  opacity: 0;
}

.global-loading-indicator .dot-1 {
  top: 80px;
  left: 160px;
  animation-delay: 0s;
}

.global-loading-indicator .dot-2 {
  top: 25px;
  left: 135px;
  animation-delay: 0.05s;
}

.global-loading-indicator .dot-3 {
  top: 5px;
  left: 80px;
  animation-delay: 0.1s;
}

.global-loading-indicator .dot-4 {
  top: 25px;
  left: 25px;
  animation-delay: 0.15s;
}

.global-loading-indicator .dot-5 {
  top: 80px;
  left: 0px;
  animation-delay: 0.2s;
}

.global-loading-indicator .dot-6 {
  top: 135px;
  left: 25px;
  animation-delay: 0.25s;
}

.global-loading-indicator .dot-7 {
  top: 160px;
  left: 80px;
  animation-delay: 0.3s;
}

.global-loading-indicator .dot-8 {
  top: 135px;
  left: 135px;
  animation-delay: 0.35s;
}

