/* Adjust some default bootstrap colors */
:root {
  --bs-body-bg: #f8fafc;
  --bs-body-color: #1e293b;
}

/* Try to stop the horizontal scroll bar */
body {
  max-width: calc(100vw - 2px);
  overflow-x: hidden;
}

/* Make sure all other sticky-top items flow under the navbar */
nav.sticky-top {
  --bs-bg-opacity: 1;
  z-index: 1030;
}

/* Pin the group headers under the navbar */
div.sticky-top {
  top: 56px;
}

/* White icons when the navlink is active */
.nav-link.active i {
  color: white !important;
}

/* Style navbar page buttons */
.page-button.active {
  background-color: var(--bs-primary) !important;
  color: white !important;
}
.page-button.active i {
  color: white !important;
}

/* Keep the bottom of the modal out of the safe zone */
@media (max-width: 767px) {
  #modal-container {
    max-height: 95% !important;
  }
}

/* Kind Header */
.kind-header {
  border-radius: 0.375rem 0.375rem 0 0;
}

/* Rotate the chevrons on the bottle lists */
div:has(+ div.show) a i.rotate {
  display: inline-block;
  transform: rotate(90deg);
}

/* Cool spinning icon animation */
.icon-spin-on-click {
  display: inline-block;
  transform-origin: center;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  transition: transform 0.3s ease; /* smooth transition */
}
@-webkit-keyframes spin-360 {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes spin-360 {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.icon-spin-on-click.spinning {
  -webkit-animation: spin-360 0.3s ease forwards;
  animation: spin-360 0.3s ease forwards;
}

/* Icon size for the bottle status icons and navbar */
.bottle-icon {
  width: 10px;
  height: 24px;
  margin: 0px 1px;
}
.next-trip-icon {
  width: 14px;
  height: 18px;
  margin: 0px 1px;
}
.shopping-cart-icon {
  width: 18px;
  height: 18px;
  margin: 0px 1px;
}
.copy-icon {
  width: 28px;
  height: 28px;
}
.delete-icon {
  width: 28px;
  height: 28px;
}
