/* 전체 토스트 메시지를 감싸는 컨테이너 */
#common-toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 개별 토스트 메시지 스타일 */
.toast-item {
  position: relative; /* ✨ 닫기 버튼을 위한 기준점 */
  padding: 15px 40px 15px 20px; /* ✨ 오른쪽 패딩 추가 */
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: opacity 0.5s, transform 0.5s;
  opacity: 1;
  transform: scale(1);
  min-width: 250px; /* 최소 너비 설정 */
}

/* ✨ X 닫기 버튼 스타일 */
.toast-close-btn {
  position: absolute;
  top: 5px;
  right: 10px;
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
}

/*토스트 임시 추가 */
/* 사라질 때의 애니메이션 효과 */
.toast-item.fade-out {
  opacity: 0;
  transform: scale(0.8);
}

/* 토스트 타입별 배경색 */
.toast-item.toast-info {
  background-color: #007bff;
}
.toast-item.toast-success {
  background-color: #28a745;
}
.toast-item.toast-error {
  background-color: #dc3545;
}