/* ===========================
   Toast Notification Styling
   =========================== */

.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999999999;
}

@media (max-width: 1280px) {
  .toast-container {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 400px;
  }
}

.toast {
  background: rgba(59, 135, 61, 0.7);
  /* more opaque for readability */
  color: #ffffff;
  padding: 16px 24px;
  border-radius: 16px;
  margin-bottom: 10px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease-in-out;
  font-size: 0.95rem;
  line-height: 1.4;
  cursor: pointer;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast i {
  font-size: 20px;
  flex-shrink: 0;
}

/* Copy button styling */
.toast-copy-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-left: auto;
}

.toast-copy-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.toast-copy-btn:active {
  transform: scale(0.95);
}

.toast-copy-btn i {
  font-size: 14px;
}

.toast-copy-btn.copied {
  background: rgba(255, 255, 255, 0.2);
}

.toast.error {
  background: rgba(197, 54, 43, 0.7);
  /* more readable red glass */
  border-color: rgba(255, 100, 100, 0.35);
}

/* ===========================
     Location Toast Styling
     =========================== */

.toast.location {
  background: rgba(47, 54, 64, 0.83);
  /* darker, more readable */
  color: #f5f6fa;
  padding: 16px 24px;
  border-radius: 16px;
  margin-bottom: 10px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.95rem;
  line-height: 1.4;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  white-space: normal;
}

/* Structured Sections */

.toast.location .bin-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 2px;
  color: #ffffff;
}

.toast.location .bin-info {
  color: #e0e0e0;
  font-size: 0.95rem;
}

.toast.location .nearest-flag {
  color: #c7ffc7;
  font-size: 0.9rem;
  font-weight: 500;
}

.toast.location .report-info {
  font-size: 0.85rem;
  color: #cccccc;
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
