
  .tooltip {
    position: absolute;
    background: #333;
    color: #fff;
    font-size: 11px;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: normal;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.2s ease;
    max-width: 250px;
    pointer-events: none;
  }

  .tooltip.show {
    opacity: 1;
    pointer-events: auto;
  }

  .tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
  }

  .tooltip.bottom::after {
    top: -6px;
    bottom: auto;
    border-color: transparent transparent #333 transparent;
  }

  .tooltip .close-btn {
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 12px;
    color: #ccc;
    cursor: pointer;
  }








  #toast-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 600px) {
  #toast-container {
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
  }
}

.toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 250px;
  max-width: 90vw;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: white;
  background-color: #333;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  animation: fadein 0.3s ease, fadeout 0.3s ease 4.5s;
  position: relative;
  overflow: hidden;
}

.toast.success {
  background-color: #2ecc71;
}

.toast.error {
  background-color: #e74c3c;
}

.toast .close-btn {
  margin-left: 10px;
  cursor: pointer;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.7);
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeout {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(10px); }
}

