.toast-container {
    position: fixed;
    z-index: 999999999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 300px;
    width: 100%;
    /* 기본적으로 상단에 위치하도록 설정 */
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
}

/* 토스트 스택이 쌓여도 모두 보이도록 약간의 margin 추가 */
.toast {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    max-width: 100%;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: white;
    margin-bottom: 4px;
    position: relative;
    border: 1px solid #eee;
}

/* 토스트 왼쪽 경계선 추가 */
.toast::before {
    display: none; /* 경계선 제거 */
}

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

.toast.hide {
    opacity: 0;
    transform: translateY(-20px);
    margin-top: -42px; /* 다음 토스트가 부드럽게 올라오도록 */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), margin-top 0.3s 0.1s;
}

/* 타입별 스타일 */
.toast-success .toast-icon {
    color: var(--primary, #FFD175);
}

.toast-info .toast-icon {
    color: var(--primary, #FFD175);
}

.toast-warning .toast-icon {
    color: var(--primary, #FFD175);
}

.toast-error .toast-icon {
    color: var(--danger, #ef4444);
}

.toast-icon {
    margin-right: 10px;
    flex-shrink: 0;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    word-break: break-word;
    margin-right: 8px;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    width: 20px;
    transition: color 0.2s;
    flex-shrink: 0;
    opacity: 0.6;
}

.toast-close:hover {
    color: #555;
    opacity: 1;
}

/* 체크 표시 스타일 */
.toast-check {
    margin-right: 10px;
    color: var(--primary-light);
    font-size: 18px;
    flex-shrink: 0;
}

/* 반응형 처리 */
@media (max-width: 480px) {
    .toast-container {
        max-width: calc(100% - 40px);
        top: 10px;
    }
    
    .toast {
        padding: 10px 14px;
        font-size: 13px;
    }
} 