/* Toast Message */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.toast {
  width: 100%;
  min-width: 300px;
  margin-bottom: 10px;
  padding: 10px 15px;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(-20px);
  animation: toast-in-out 3s ease-in-out forwards;
  pointer-events: auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-size: 14px;
}

.toast-success {
  background-color: #4caf50;
  color: white;
  border-left: 5px solid #2e7d32;
}

.toast-error {
  background-color: #f44336;
  color: white;
  border-left: 5px solid #b71c1c;
}

.toast-info {
  background-color: #2196f3;
  color: white;
  border-left: 5px solid #0d47a1;
}

.toast-warning {
  background-color: #ff9800; /* warna oranye */
  color: white;
  border-left: 5px solid #e65100; /* oranye gelap */
}

.toast i {
  font-size: 16px;
}

.toast-content {
  flex-grow: 1;
  margin-right: 10px;
  margin-left: 12px;
}

.toast-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  margin: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-close:hover {
  background-color: transparent;
}

/* Animation */
@keyframes toast-in-out {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  15% {
    opacity: 1;
    transform: translateY(0);
  }
  85% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}
