/* Floating banana animation for login */
.banana-float {
  position: fixed;
  font-size: 2rem;
  animation: float linear infinite;
  animation-fill-mode: backwards;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-10vh) rotate(360deg);
    opacity: 0;
  }
}

/* Bouncing banana loader */
.banana-bounce {
  display: inline-block;
  font-size: 3rem;
  animation: bounce 0.6s ease-in-out infinite alternate;
}

@keyframes bounce {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-20px) scale(1.1);
  }
}

/* Loading tip fade */
.loading-tip {
  animation: tipFade 0.5s ease-in-out;
}

@keyframes tipFade {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pill / chip buttons */
.pill {
  transition: all 0.15s ease;
}

.pill.active {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
}

/* Upload zone */
.upload-zone {
  border: 2px dashed #93C5FD;
  transition: all 0.2s ease;
}

.upload-zone.dragover {
  border-color: #3B82F6;
  background-color: rgba(59, 130, 246, 0.1);
}

/* Result image */
.result-image {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #93C5FD;
  border-radius: 3px;
}

/* Horizontal scroll container */
.scroll-pills {
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

/* Toast notification */
.toast {
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s;
  animation-fill-mode: forwards;
}

@keyframes toastIn {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes toastOut {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* Thumbnail strip */
.thumb-strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  -webkit-overflow-scrolling: touch;
}

.thumb-item {
  position: relative;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 0.5rem;
  overflow: hidden;
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}
