body {
  background: #f5f5f5;
}

.navbar-brand {
  font-weight: 600;
}

.card {
  border-radius: .75rem;
}

.list-group-item {
  border-radius: .5rem;
  margin-bottom: .5rem;
}
/* Base card tweaks */
.item-card {
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, border-color 0.1s ease-out;
}

/* Clickable cards (those with links) */
.item-card--link {
  cursor: pointer;
  border: 1px solid rgba(13, 110, 253, 0.2); /* subtle primary border */
}

/* Hover effect on clickable cards */
.item-card--link:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border-color: rgba(13, 110, 253, 0.6);
}

/* Make clickable titles look like links but keep them nice */
.item-card--link .card-title {
  color: #0d6efd; /* Bootstrap primary */
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* On hover, emphasize the title a bit more */
.item-card--link:hover .card-title {
  text-decoration-thickness: 2px;
}


.clickable-item {
    cursor: pointer;
}

.clickable-item:hover {
    background-color: #f8f9fa; /* light gray */
}

.clickable-item:hover .card-title {
    text-decoration-thickness: 2px;
}

.add-item-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1050;
  border-radius: 999px;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.add-item-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease-out, visibility 0.15s ease-out;
}

@media (max-width: 991.98px) {
  .add-item-tray {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: -100%;
    z-index: 1045;
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 -0.5rem 1rem rgba(0, 0, 0, 0.25);
    max-height: 70vh;
    overflow-y: auto;
    transition: bottom 0.2s ease-out;
  }

  .add-item-tray.open {
    bottom: 0.75rem;
  }

  .add-item-backdrop.show {
    opacity: 1;
    visibility: visible;
  }
}
/* Bigger, easier-to-tap FAB */
.add-item-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.5rem;
  z-index: 1050;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.25);
}

/* Backdrop for tray */
.add-item-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease-out, visibility 0.15s ease-out;
}

/* Mobile bottom sheet */
@media (max-width: 991.98px) {
  .add-item-tray {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: -100%;
    z-index: 1045;
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 -0.5rem 1rem rgba(0, 0, 0, 0.25);
    max-height: 70vh;
    overflow-y: auto;
    transition: bottom 0.2s ease-out;
	z-index:9999;
  }

  .add-item-tray.open {
    bottom: 0.75rem;
  }

  .add-item-backdrop.show {
    opacity: 1;
    visibility: visible;
  }
}

/* Tracking tray (bottom sheet) */
.tracking-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease-out, visibility 0.15s ease-out;
}

.tracking-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.tracking-tray {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: -100%;
  z-index: 1045;
  background: #ffffff;
  border-radius: 0.75rem 0.75rem 0 0;
  padding: 0.75rem 1rem 1rem;
  box-shadow: 0 -0.5rem 1rem rgba(0, 0, 0, 0.25);
  max-height: 70vh;
  overflow-y: auto;
  transition: bottom 0.2s ease-out;
}

.tracking-tray.open {
  bottom: 0.75rem;
}
#shareCopiedMsg.fade-in {
  opacity: 1;
  transition: opacity 0.3s ease-in;
}

#shareCopiedMsg {
  opacity: 0;
}
/* Friends list: claimed items look inactive/greyed out */
.claimed-card {
  background-color: #fbfbfb;
  opacity: 0.7;
}
