/* FlipTracker custom styles layered on top of Bootstrap. */

body {
  min-height: 100vh;
}

/* --- Dashboard item cards --- */
.item-card {
  transition: transform .12s ease, box-shadow .12s ease;
}
.item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .12) !important;
}

.item-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bs-tertiary-bg);
  overflow: hidden;
  border-top-left-radius: var(--bs-card-inner-border-radius);
  border-top-right-radius: var(--bs-card-inner-border-radius);
}
.item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.item-status {
  position: absolute;
  top: .5rem;
  left: .5rem;
}

.item-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--bs-secondary-color);
  font-size: 2.5rem;
  background: var(--bs-tertiary-bg);
}

/* --- Stat cards --- */
.stat-card {
  border-left: 4px solid var(--bs-primary) !important;
}

/* --- Detail page photos --- */
.detail-photo {
  max-height: 480px;
  width: 100%;
  object-fit: contain;
}

/* --- Edit page existing-photo tiles --- */
.photo-tile img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: .375rem;
  border: 1px solid var(--bs-border-color);
}

/* --- New-photo preview thumbnails --- */
#photo-preview img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: .375rem;
  border: 1px solid var(--bs-border-color);
}

/* --- Floating quick-add button (thumb zone on phones) --- */
.fab {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 1030;
}
/* On large screens the header buttons are in easy reach — hide the FAB. */
@media (min-width: 992px) {
  .fab { display: none; }
}
